Rocket/codegen/tests/compile-fail/route-invalid-method.rs
2016-09-28 20:39:14 -07:00

13 lines
202 B
Rust

#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[route(CONNECT, "hello")] //~ ERROR valid HTTP method
fn get() -> &'static str { "hi" }
fn main() {
let _ = routes![get];
}