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

15 lines
171 B
Rust
Raw Normal View History

#![feature(plugin)]
#![plugin(rocket_macros)]
extern crate rocket;
#[get("/<todo>")]
fn todo(todo: &str) -> &str {
todo
}
fn main() {
let _ = routes![todo];
}