#![feature(plugin, decl_macro)] #![plugin(rocket_codegen)] extern crate rocket; #[get("/")] fn get() { } #[route(GET, "/")] fn get_r() { } #[put("/")] fn put() { } #[route(PUT, "/")] fn put_r() { } #[post("/")] fn post() { } #[route(POST, "/")] fn post_r() { } #[delete("/")] fn delete() { } #[route(DELETE, "/")] fn delete_r() { } #[head("/")] fn head() { } #[route(HEAD, "/")] fn head_r() { } #[patch("/")] fn patch() { } #[route(PATCH, "/")] fn patch_r() { } #[options("/")] fn options() { } #[route(OPTIONS, "/")] fn options_r() { } #[test] fn main() { }