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

15 lines
172 B
Rust
Raw Normal View History

#![feature(plugin)]
2016-09-09 03:38:58 +00:00
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("/<todo>")]
fn todo(todo: &str) -> &str {
todo
}
fn main() {
let _ = routes![todo];
}