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("/<name>")] //~ ERROR unused dynamic parameter: `name`
|
|
|
|
fn get(other: usize) -> &'static str { "hi" } //~ NOTE expected
|
2016-09-09 00:09:35 +00:00
|
|
|
|
2017-08-22 08:01:57 +00:00
|
|
|
#[get("/a?<r>")] //~ ERROR unused dynamic parameter: `r`
|
|
|
|
fn get1() -> &'static str { "hi" } //~ NOTE expected
|
2016-09-29 03:39:14 +00:00
|
|
|
|
2017-08-22 08:01:57 +00:00
|
|
|
#[post("/a", data = "<test>")] //~ ERROR unused dynamic parameter: `test`
|
|
|
|
fn post() -> &'static str { "hi" } //~ NOTE expected
|
2016-09-29 03:39:14 +00:00
|
|
|
|
2017-08-22 08:01:57 +00:00
|
|
|
#[get("/<_r>")] //~ ERROR unused dynamic parameter: `_r`
|
|
|
|
fn get2(r: usize) -> &'static str { "hi" } //~ NOTE expected
|
2017-08-03 01:44:31 +00:00
|
|
|
|
2016-09-09 00:09:35 +00:00
|
|
|
fn main() { }
|