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

14 lines
233 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro)]
2016-09-29 03:39:14 +00:00
#![plugin(rocket_codegen)]
extern crate rocket;
#[get] //~ ERROR incorrect use of attribute
//~^ ERROR malformed attribute
fn get() -> &'static str { "hi" }
fn main() {
let _ = routes![get];
}