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
|
|
|
|
fn get(name: &str) -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[get("/<<<<name><")] //~ ERROR identifiers
|
|
|
|
fn get(name: &str) -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[get("/<!>")] //~ ERROR identifiers
|
|
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[get("/<_>")] //~ ERROR ignored
|
|
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[get("/<1>")] //~ ERROR identifiers
|
|
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
|
|
|
|
#[get("/<>name><")] //~ ERROR cannot be empty
|
|
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
|
|
|
|
fn main() { }
|