Rocket/codegen/tests/compile-fail/route-bad-method.rs

14 lines
236 B
Rust
Raw Permalink Normal View History

2016-09-29 03:39:14 +00:00
#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
2016-09-29 03:55:13 +00:00
#[route(FIX, "hello")] //~ ERROR is not a valid HTTP method
2016-09-29 03:39:14 +00:00
//~^ ERROR valid HTTP method
fn get() -> &'static str { "hi" }
fn main() {
let _ = routes![get];
}