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.
17 lines
559 B
Rust
17 lines
559 B
Rust
#![feature(plugin, decl_macro)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
#[get("/<name>")] //~ ERROR unused dynamic parameter: `name`
|
|
fn get(other: usize) -> &'static str { "hi" } //~ NOTE expected
|
|
|
|
#[get("/a?<r>")] //~ ERROR unused dynamic parameter: `r`
|
|
fn get1() -> &'static str { "hi" } //~ NOTE expected
|
|
|
|
#[post("/a", data = "<test>")] //~ ERROR unused dynamic parameter: `test`
|
|
fn post() -> &'static str { "hi" } //~ NOTE expected
|
|
|
|
#[get("/<_r>")] //~ ERROR unused dynamic parameter: `_r`
|
|
fn get2(r: usize) -> &'static str { "hi" } //~ NOTE expected
|
|
|
|
fn main() { }
|