#![feature(plugin, decl_macro, custom_derive)] #![plugin(rocket_codegen)] extern crate rocket; use std::path::PathBuf; use rocket::http::uri::SegmentError; #[post("//")] fn get(a: String, b: PathBuf) -> String { format!("{}/{}", a, b.to_string_lossy()) } #[post("//")] fn get2(a: String, b: Result) -> String { format!("{}/{}", a, b.unwrap().to_string_lossy()) } #[test] fn main() { }