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

15 lines
230 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro, proc_macro_non_items)]
2016-09-09 03:38:58 +00:00
#![plugin(rocket_codegen)]
#[macro_use] extern crate rocket;
#[get("/<todo>")]
fn todo(todo: String) -> String {
todo
}
2017-09-10 08:19:38 +00:00
#[test]
fn main() {
let _ = routes![todo];
}