1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 13:02:28 +00:00
deprecated-gotham-restful/tests/ui/endpoint/invalid_placeholders_ty.rs

20 lines
325 B
Rust
Raw Permalink Normal View History

#[macro_use]
extern crate gotham_restful;
use gotham_restful::gotham::hyper::Method;
#[derive(Resource)]
#[resource(endpoint)]
struct FooResource;
#[derive(Debug)]
struct FooPlaceholders {
foo: String
}
#[endpoint(method = "Method::GET", uri = ":foo")]
fn endpoint(_: FooPlaceholders) {
unimplemented!()
}
fn main() {}