mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-08 10:42:37 +00:00
084481a84e
This is a breaking change. All Rocket applications using code generation must now additionally declare usage of the 'decl_macro' feature.
14 lines
296 B
Rust
14 lines
296 B
Rust
#![feature(plugin, decl_macro)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
#[get("a")] //~ ERROR absolute
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
#[get("")] //~ ERROR absolute
|
|
fn get1(id: usize) -> &'static str { "hi" }
|
|
|
|
#[get("a/b/c")] //~ ERROR absolute
|
|
fn get2(id: usize) -> &'static str { "hi" }
|
|
|
|
fn main() { }
|