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.
18 lines
440 B
Rust
18 lines
440 B
Rust
#![feature(plugin, decl_macro)]
|
|
#![plugin(rocket_codegen)]
|
|
|
|
#[get("/<param>")] //~ ERROR unused dynamic parameter: `param`
|
|
fn get() { } //~ NOTE expected
|
|
|
|
#[get("/<a>")] //~ ERROR unused dynamic parameter: `a`
|
|
fn get2() { } //~ NOTE expected
|
|
|
|
#[get("/a/b/c/<a>/<b>")]
|
|
//~^ ERROR unused dynamic parameter: `a`
|
|
//~^^ ERROR unused dynamic parameter: `b`
|
|
fn get32() { }
|
|
//~^ NOTE expected
|
|
//~^^ NOTE expected
|
|
|
|
fn main() { }
|