diff --git a/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr b/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr index 7d3a56a5..d761eeae 100644 --- a/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/catch_type_errors.stderr @@ -1,18 +1,26 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied - --> $DIR/catch_type_errors.rs:6:30 - | -6 | fn f1(_request: &Request) -> usize { - | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` - | - = note: required by `respond_to` + --> $DIR/catch_type_errors.rs:6:30 + | +6 | fn f1(_request: &Request) -> usize { + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` + | +note: required by `respond_to` + --> $DIR/responder.rs:298:5 + | +298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied - --> $DIR/catch_type_errors.rs:11:30 - | -11 | fn f2(_request: &Request) -> bool { - | ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool` - | - = note: required by `respond_to` + --> $DIR/catch_type_errors.rs:11:30 + | +11 | fn f2(_request: &Request) -> bool { + | ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool` + | +note: required by `respond_to` + --> $DIR/responder.rs:298:5 + | +298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> $DIR/catch_type_errors.rs:16:17 @@ -21,17 +29,25 @@ error[E0308]: mismatched types | ^^^^ expected `bool`, found `&rocket::Request<'_>` error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied - --> $DIR/catch_type_errors.rs:16:26 - | -16 | fn f3(_request: bool) -> usize { - | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` - | - = note: required by `respond_to` + --> $DIR/catch_type_errors.rs:16:26 + | +16 | fn f3(_request: bool) -> usize { + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` + | +note: required by `respond_to` + --> $DIR/responder.rs:298:5 + | +298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied - --> $DIR/catch_type_errors.rs:21:12 - | -21 | fn f4() -> usize { - | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` - | - = note: required by `respond_to` + --> $DIR/catch_type_errors.rs:21:12 + | +21 | fn f4() -> usize { + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` + | +note: required by `respond_to` + --> $DIR/responder.rs:298:5 + | +298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/core/codegen/tests/ui-fail-nightly/responder-types.stderr b/core/codegen/tests/ui-fail-nightly/responder-types.stderr index b091b3d7..7fbba7e7 100644 --- a/core/codegen/tests/ui-fail-nightly/responder-types.stderr +++ b/core/codegen/tests/ui-fail-nightly/responder-types.stderr @@ -1,10 +1,14 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied - --> $DIR/responder-types.rs:5:5 - | -5 | thing: u8, - | ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8` - | - = note: required by `respond_to` + --> $DIR/responder-types.rs:5:5 + | +5 | thing: u8, + | ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8` + | +note: required by `respond_to` + --> $DIR/responder.rs:298:5 + | +298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `Header<'_>: From` is not satisfied --> $DIR/responder-types.rs:11:5 @@ -21,12 +25,16 @@ error[E0277]: the trait bound `Header<'_>: From` is not satisfied = note: required because of the requirements on the impl of `Into>` for `u8` error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied - --> $DIR/responder-types.rs:16:5 - | -16 | thing: u8, - | ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8` - | - = note: required by `respond_to` + --> $DIR/responder-types.rs:16:5 + | +16 | thing: u8, + | ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8` + | +note: required by `respond_to` + --> $DIR/responder.rs:298:5 + | +298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `Header<'_>: From` is not satisfied --> $DIR/responder-types.rs:17:5 @@ -57,9 +65,13 @@ error[E0277]: the trait bound `Header<'_>: From` is not sat = note: required because of the requirements on the impl of `Into>` for `std::string::String` error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied - --> $DIR/responder-types.rs:28:13 - | -28 | fn foo() -> usize { 0 } - | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` - | - = note: required by `route::handler::, Status, rocket::Data<'o>>>::from` + --> $DIR/responder-types.rs:28:13 + | +28 | fn foo() -> usize { 0 } + | ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize` + | +note: required by `route::handler::, Status, rocket::Data<'o>>>::from` + --> $DIR/handler.rs:188:5 + | +188 | pub fn from>(req: &'r Request<'_>, responder: R) -> Outcome<'r> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr b/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr index e9f53ff9..1ed7f2f3 100644 --- a/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr +++ b/core/codegen/tests/ui-fail-nightly/route-type-errors.stderr @@ -1,18 +1,26 @@ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied - --> $DIR/route-type-errors.rs:6:12 - | -6 | fn f0(foo: Q) {} - | ^ the trait `FromParam<'_>` is not implemented for `Q` - | - = note: required by `from_param` + --> $DIR/route-type-errors.rs:6:12 + | +6 | fn f0(foo: Q) {} + | ^ the trait `FromParam<'_>` is not implemented for `Q` + | +note: required by `from_param` + --> $DIR/from_param.rs:183:5 + | +183 | fn from_param(param: &'a str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied - --> $DIR/route-type-errors.rs:9:12 - | -9 | fn f1(foo: Q) {} - | ^ the trait `FromSegments<'_>` is not implemented for `Q` - | - = note: required by `from_segments` + --> $DIR/route-type-errors.rs:9:12 + | +9 | fn f1(foo: Q) {} + | ^ the trait `FromSegments<'_>` is not implemented for `Q` + | +note: required by `from_segments` + --> $DIR/from_param.rs:291:5 + | +291 | fn from_segments(segments: Segments<'r, Path>) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied --> $DIR/route-type-errors.rs:12:12 @@ -53,12 +61,16 @@ error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied | -- required by this bound in `from_request` error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied - --> $DIR/route-type-errors.rs:21:18 - | -21 | fn f5(a: Q, foo: Q) {} - | ^ the trait `FromParam<'_>` is not implemented for `Q` - | - = note: required by `from_param` + --> $DIR/route-type-errors.rs:21:18 + | +21 | fn f5(a: Q, foo: Q) {} + | ^ the trait `FromParam<'_>` is not implemented for `Q` + | +note: required by `from_param` + --> $DIR/from_param.rs:183:5 + | +183 | fn from_param(param: &'a str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied --> $DIR/route-type-errors.rs:24:10 @@ -72,17 +84,25 @@ error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied | -- required by this bound in `from_request` error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied - --> $DIR/route-type-errors.rs:24:18 - | -24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} - | ^ the trait `FromParam<'_>` is not implemented for `Q` - | - = note: required by `from_param` + --> $DIR/route-type-errors.rs:24:18 + | +24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} + | ^ the trait `FromParam<'_>` is not implemented for `Q` + | +note: required by `from_param` + --> $DIR/from_param.rs:183:5 + | +183 | fn from_param(param: &'a str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied - --> $DIR/route-type-errors.rs:24:39 - | -24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} - | ^ the trait `FromParam<'_>` is not implemented for `Q` - | - = note: required by `from_param` + --> $DIR/route-type-errors.rs:24:39 + | +24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} + | ^ the trait `FromParam<'_>` is not implemented for `Q` + | +note: required by `from_param` + --> $DIR/from_param.rs:183:5 + | +183 | fn from_param(param: &'a str) -> Result; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr b/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr index 9f527cdf..848461e4 100644 --- a/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr +++ b/core/codegen/tests/ui-fail-nightly/typed-uri-bad-type.stderr @@ -5,116 +5,156 @@ error[E0271]: type mismatch resolving `>::E | ^^^^^^^^^^^^^^^^^^^^ expected enum `Infallible`, found `&str` error[E0277]: the trait bound `usize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:45:22 - | -45 | uri!(simple(id = "hi")); - | ^^^^ the trait `FromUriParam` is not implemented for `usize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:45:22 + | +45 | uri!(simple(id = "hi")); + | ^^^^ the trait `FromUriParam` is not implemented for `usize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `usize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:47:17 - | -47 | uri!(simple("hello")); - | ^^^^^^^ the trait `FromUriParam` is not implemented for `usize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:47:17 + | +47 | uri!(simple("hello")); + | ^^^^^^^ the trait `FromUriParam` is not implemented for `usize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `usize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:49:22 - | -49 | uri!(simple(id = 239239i64)); - | ^^^^^^^^^ the trait `FromUriParam` is not implemented for `usize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:49:22 + | +49 | uri!(simple(id = 239239i64)); + | ^^^^^^^^^ the trait `FromUriParam` is not implemented for `usize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `S: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:51:30 - | -51 | uri!(not_uri_display(10, S)); - | ^ the trait `FromUriParam` is not implemented for `S` - | - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:51:30 + | +51 | uri!(not_uri_display(10, S)); + | ^ the trait `FromUriParam` is not implemented for `S` + | +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `i32: FromUriParam>` is not satisfied - --> $DIR/typed-uri-bad-type.rs:56:25 - | -56 | uri!(optionals(id = Some(10), name = Ok("bob".into()))); - | ^^^^^^^^ the trait `FromUriParam>` is not implemented for `i32` - | - = help: the following implementations were found: - > - > - > - = note: required because of the requirements on the impl of `FromUriParam>` for `std::option::Option` - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:56:25 + | +56 | uri!(optionals(id = Some(10), name = Ok("bob".into()))); + | ^^^^^^^^ the trait `FromUriParam>` is not implemented for `i32` + | + = help: the following implementations were found: + > + > + > + = note: required because of the requirements on the impl of `FromUriParam>` for `std::option::Option` +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `std::string::String: FromUriParam>` is not satisfied - --> $DIR/typed-uri-bad-type.rs:56:42 - | -56 | uri!(optionals(id = Some(10), name = Ok("bob".into()))); - | ^^^^^^^^^^^^^^^^ the trait `FromUriParam>` is not implemented for `std::string::String` - | - = help: the following implementations were found: - > - > - > - > - and 2 others - = note: required because of the requirements on the impl of `FromUriParam>` for `Result` - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:56:42 + | +56 | uri!(optionals(id = Some(10), name = Ok("bob".into()))); + | ^^^^^^^^^^^^^^^^ the trait `FromUriParam>` is not implemented for `std::string::String` + | + = help: the following implementations were found: + > + > + > + > + and 2 others + = note: required because of the requirements on the impl of `FromUriParam>` for `Result` +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `isize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:58:19 - | -58 | uri!(simple_q("hi")); - | ^^^^ the trait `FromUriParam` is not implemented for `isize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:58:19 + | +58 | uri!(simple_q("hi")); + | ^^^^ the trait `FromUriParam` is not implemented for `isize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `isize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:60:24 - | -60 | uri!(simple_q(id = "hi")); - | ^^^^ the trait `FromUriParam` is not implemented for `isize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:60:24 + | +60 | uri!(simple_q(id = "hi")); + | ^^^^ the trait `FromUriParam` is not implemented for `isize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `S: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:62:23 - | -62 | uri!(other_q(100, S)); - | ^ the trait `FromUriParam` is not implemented for `S` - | - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:62:23 + | +62 | uri!(other_q(100, S)); + | ^ the trait `FromUriParam` is not implemented for `S` + | +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `S: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:64:25 - | -64 | uri!(other_q(rest = S, id = 100)); - | ^ the trait `FromUriParam` is not implemented for `S` - | - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:64:25 + | +64 | uri!(other_q(rest = S, id = 100)); + | ^ the trait `FromUriParam` is not implemented for `S` + | +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `S: Ignorable` is not satisfied --> $DIR/typed-uri-bad-type.rs:66:25 @@ -139,24 +179,32 @@ error[E0277]: the trait bound `usize: Ignorable` | ------------ required by this bound in `assert_ignorable` error[E0277]: the trait bound `S: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:68:25 - | -68 | uri!(other_q(rest = S, id = _)); - | ^ the trait `FromUriParam` is not implemented for `S` - | - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:68:25 + | +68 | uri!(other_q(rest = S, id = _)); + | ^ the trait `FromUriParam` is not implemented for `S` + | +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `usize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:77:40 - | -77 | uri!(uri!("?foo#bar"), simple(id = "hi")); - | ^^^^ the trait `FromUriParam` is not implemented for `usize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:77:40 + | +77 | uri!(uri!("?foo#bar"), simple(id = "hi")); + | ^^^^ the trait `FromUriParam` is not implemented for `usize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefix` is not satisfied --> $DIR/typed-uri-bad-type.rs:77:15 @@ -165,16 +213,20 @@ error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefi | ^^^^^^^^^^ the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Reference<'_>` error[E0277]: the trait bound `usize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:78:33 - | -78 | uri!(uri!("*"), simple(id = "hi")); - | ^^^^ the trait `FromUriParam` is not implemented for `usize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:78:33 + | +78 | uri!(uri!("*"), simple(id = "hi")); + | ^^^^ the trait `FromUriParam` is not implemented for `usize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is not satisfied --> $DIR/typed-uri-bad-type.rs:78:15 @@ -183,16 +235,20 @@ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is | ^^^ the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Asterisk` error[E0277]: the trait bound `usize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:81:25 - | -81 | uri!(_, simple(id = "hi"), uri!("*")); - | ^^^^ the trait `FromUriParam` is not implemented for `usize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:81:25 + | +81 | uri!(_, simple(id = "hi"), uri!("*")); + | ^^^^ the trait `FromUriParam` is not implemented for `usize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix>` is not satisfied --> $DIR/typed-uri-bad-type.rs:81:37 @@ -201,16 +257,20 @@ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix>` is not implemented for `rocket::http::uri::Asterisk` error[E0277]: the trait bound `usize: FromUriParam` is not satisfied - --> $DIR/typed-uri-bad-type.rs:82:25 - | -82 | uri!(_, simple(id = "hi"), uri!("/foo/bar")); - | ^^^^ the trait `FromUriParam` is not implemented for `usize` - | - = help: the following implementations were found: - > - > - > - = note: required by `from_uri_param` + --> $DIR/typed-uri-bad-type.rs:82:25 + | +82 | uri!(_, simple(id = "hi"), uri!("/foo/bar")); + | ^^^^ the trait `FromUriParam` is not implemented for `usize` + | + = help: the following implementations were found: + > + > + > +note: required by `from_uri_param` + --> $DIR/from_uri_param.rs:192:5 + | +192 | fn from_uri_param(param: T) -> Self::Target; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix>` is not satisfied --> $DIR/typed-uri-bad-type.rs:82:37