mirror of https://github.com/rwf2/Rocket.git
17 lines
441 B
Rust
17 lines
441 B
Rust
#![feature(plugin, decl_macro, proc_macro_non_items)]
|
|
#![plugin(rocket_codegen)]
|
|
#![allow(dead_code, unused_variables)]
|
|
|
|
#[macro_use] extern crate rocket;
|
|
|
|
#[get("/test/<one>/<two>/<three>")]
|
|
fn get(one: String, two: usize, three: isize) -> &'static str { "hi" }
|
|
|
|
#[get("/test/<_one>/<_two>/<__three>")]
|
|
fn ignored(_one: String, _two: usize, __three: isize) -> &'static str { "hi" }
|
|
|
|
#[test]
|
|
fn main() {
|
|
let _ = routes![get, ignored];
|
|
}
|