rocket_codegen 0.2.9

Code generation for the Rocket web framework.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![feature(plugin)]
#![plugin(rocket_codegen)]

#[get("/<param>")] //~ ERROR declared
fn get() {  } //~ ERROR isn't in the function signature

#[get("/<a>")] //~ ERROR declared
fn get2() {  } //~ ERROR isn't in the function signature

#[get("/a/b/c/<a>/<b>")]
    //~^ ERROR 'a' is declared
    //~^^ ERROR 'b' is declared
fn get32() {  }
    //~^ ERROR isn't in the function signature
    //~^^ ERROR isn't in the function signature

fn main() {  }