2016-09-09 03:25:07 +00:00
|
|
|
#![feature(plugin)]
|
2016-09-09 03:38:58 +00:00
|
|
|
#![plugin(rocket_codegen)]
|
2016-09-09 03:25:07 +00:00
|
|
|
|
|
|
|
#[get("/><")] //~ ERROR malformed
|
|
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[get("/<name><")] //~ ERROR malformed
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get1(name: &str) -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-02-06 12:03:30 +00:00
|
|
|
#[get("/<<<<name><")] //~ ERROR malformed
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get2(name: &str) -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
|
|
|
#[get("/<!>")] //~ ERROR identifiers
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get3() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
|
|
|
#[get("/<_>")] //~ ERROR ignored
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get4() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
|
|
|
#[get("/<1>")] //~ ERROR identifiers
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get5() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-02-06 12:03:30 +00:00
|
|
|
#[get("/<>name><")] //~ ERROR malformed
|
2016-09-29 02:38:11 +00:00
|
|
|
fn get6() -> &'static str { "hi" }
|
2016-09-09 03:25:07 +00:00
|
|
|
|
2017-02-06 12:03:30 +00:00
|
|
|
#[get("/<name>:<id>")] //~ ERROR identifiers
|
|
|
|
fn get7() -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[get("/<>")] //~ ERROR empty
|
|
|
|
fn get8() -> &'static str { "hi" }
|
|
|
|
|
2016-09-09 03:25:07 +00:00
|
|
|
fn main() { }
|