mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-22 09:22:03 +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
249 B
Rust
14 lines
249 B
Rust
#![feature(plugin, decl_macro)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
extern crate rocket;
|
|
|
|
#[route(FIX, "/hello")] //~ ERROR is not a valid HTTP method
|
|
//~^ ERROR valid HTTP method
|
|
fn get() -> &'static str { "hi" }
|
|
|
|
fn main() {
|
|
let _ = routes![get];
|
|
}
|
|
|