Rocket/codegen/tests/compile-fail/bad-attribute-param.rs

13 lines
207 B
Rust

#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get(path = "/hello", 123)] //~ ERROR expected
fn get() -> &'static str { "hi" }
fn main() {
let _ = routes![get];
}