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("/<name>")] //~ ERROR 'name' is declared
|
2016-09-09 03:25:07 +00:00
|
|
|
fn get(other: &str) -> &'static str { "hi" } //~ ERROR isn't in the function
|
2016-09-09 00:09:35 +00:00
|
|
|
|
2016-09-29 03:39:14 +00:00
|
|
|
#[get("/a?<r>")] //~ ERROR 'r' is declared
|
|
|
|
fn get1() -> &'static str { "hi" } //~ ERROR isn't in the function
|
|
|
|
|
2016-10-12 07:14:42 +00:00
|
|
|
#[get("/a", data = "<test>")] //~ ERROR 'test' is declared
|
2016-09-29 03:39:14 +00:00
|
|
|
fn get2() -> &'static str { "hi" } //~ ERROR isn't in the function
|
|
|
|
|
2016-09-09 00:09:35 +00:00
|
|
|
fn main() { }
|