Rocket/codegen/tests/issue-1-colliding-names.rs

15 lines
195 B
Rust

#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("/<todo>")]
fn todo(todo: String) -> String {
todo
}
#[test]
fn main() {
let _ = routes![todo];
}