Rocket/codegen/tests/ui/malformed-param-list.rs

30 lines
553 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro)]
2016-09-09 03:38:58 +00:00
#![plugin(rocket_codegen)]
#[get("/><")]
fn get() -> &'static str { "hi" }
#[get("/<id><")]
fn get1(id: usize) -> &'static str { "hi" }
#[get("/<<<<id><")]
fn get2(id: usize) -> &'static str { "hi" }
#[get("/<!>")]
2016-09-29 02:38:11 +00:00
fn get3() -> &'static str { "hi" }
#[get("/<_>")]
2016-09-29 02:38:11 +00:00
fn get4() -> &'static str { "hi" }
#[get("/<1>")]
2016-09-29 02:38:11 +00:00
fn get5() -> &'static str { "hi" }
#[get("/<>name><")]
2016-09-29 02:38:11 +00:00
fn get6() -> &'static str { "hi" }
#[get("/<name>:<id>")]
fn get7() -> &'static str { "hi" }
#[get("/<>")]
fn get8() -> &'static str { "hi" }