2017-08-29 03:14:59 +00:00
|
|
|
#![feature(plugin, decl_macro)]
|
2016-09-09 03:38:58 +00:00
|
|
|
#![plugin(rocket_codegen)]
|
2016-09-09 00:09:35 +00:00
|
|
|
|
2017-08-22 08:01:57 +00:00
|
|
|
#[get("/<param>")] //~ ERROR unused dynamic parameter: `param`
|
|
|
|
fn get() { } //~ NOTE expected
|
2016-09-09 00:09:35 +00:00
|
|
|
|
2017-08-22 08:01:57 +00:00
|
|
|
#[get("/<a>")] //~ ERROR unused dynamic parameter: `a`
|
|
|
|
fn get2() { } //~ NOTE expected
|
2016-09-09 00:09:35 +00:00
|
|
|
|
|
|
|
#[get("/a/b/c/<a>/<b>")]
|
2017-08-22 08:01:57 +00:00
|
|
|
//~^ ERROR unused dynamic parameter: `a`
|
|
|
|
//~^^ ERROR unused dynamic parameter: `b`
|
2016-09-09 00:09:35 +00:00
|
|
|
fn get32() { }
|
2017-08-22 08:01:57 +00:00
|
|
|
//~^ NOTE expected
|
|
|
|
//~^^ NOTE expected
|
2016-09-09 00:09:35 +00:00
|
|
|
|
|
|
|
fn main() { }
|