mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-07 10:12:36 +00:00
084481a84e
This is a breaking change. All Rocket applications using code generation must now additionally declare usage of the 'decl_macro' feature.
10 lines
171 B
Rust
10 lines
171 B
Rust
#![feature(plugin, decl_macro)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
extern crate rocket;
|
|
|
|
#[get("/")]
|
|
fn get(_: usize) -> &'static str { "hi" } //~ ERROR argument
|
|
|
|
fn main() { }
|