Rocket/codegen/tests/compile-fail/decorate-trait.rs

12 lines
203 B
Rust

#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("")] //~ ERROR can only be used on functions
trait C { } //~ ERROR but was applied
fn main() {
let _ = routes![get];
}