Rocket/codegen/tests/rank_decorator.rs

17 lines
278 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("/", rank = 1)]
fn get1() -> &'static str { "hi" }
#[get("/", rank = 2)]
fn get2() -> &'static str { "hi" }
#[get("/", rank = 3)]
fn get3() -> &'static str { "hi" }
2017-09-10 08:19:38 +00:00
#[test]
fn main() { }