Rocket/codegen/tests/run-pass/empty-fn.rs

12 lines
156 B
Rust

#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("")]
fn get() -> &'static str { "hi" }
fn main() {
let _ = routes![get];
}