Rocket/codegen/tests/run-pass/issue-1-colliding-names.rs
Sergio Benitez f5ec470a7d Use the RawStr type for raw parameter strings.
This is a breaking change.

The `&str` type no longer implements `FromParam`. The `&RawStr` type
should be used in its place.
2017-03-31 00:18:58 -07:00

15 lines
176 B
Rust

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