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

13 lines
203 B
Rust
Raw Normal View History

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