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

13 lines
194 B
Rust
Raw Normal View History

2016-09-29 03:39:14 +00:00
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get(path = "hello", 123)] //~ ERROR expected
fn get() -> &'static str { "hi" }
fn main() {
let _ = routes![get];
}