1
0
mirror of https://github.com/rwf2/Rocket.git synced 2025-03-03 21:12:03 +00:00
Rocket/codegen/tests/compile-fail/decorate-impl.rs

13 lines
214 B
Rust
Raw Normal View History

2016-09-29 03:39:14 +00:00
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("")] //~ ERROR can only be used on functions
impl C for A { } //~ ERROR but was applied
fn main() {
let _ = routes![get];
}