Rocket/codegen/tests/compile-fail/bad-attribute-form.rs
2016-09-28 20:39:14 -07:00

14 lines
221 B
Rust

#![feature(plugin)]
#![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];
}