mirror of https://github.com/rwf2/Rocket.git
14 lines
286 B
Rust
14 lines
286 B
Rust
#![feature(plugin)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
#[get("a")] //~ ERROR absolute
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
#[get("")] //~ ERROR absolute
|
|
fn get1(name: &str) -> &'static str { "hi" }
|
|
|
|
#[get("a/b/c")] //~ ERROR absolute
|
|
fn get2(name: &str) -> &'static str { "hi" }
|
|
|
|
fn main() { }
|