2016-09-09 00:09:35 +00:00
|
|
|
#![feature(plugin)]
|
2016-09-09 03:38:58 +00:00
|
|
|
#![plugin(rocket_codegen)]
|
2016-09-09 00:09:35 +00:00
|
|
|
|
|
|
|
#[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() { }
|