mirror of https://github.com/rwf2/Rocket.git
Update UI tests for latest nightly.
This commit is contained in:
parent
534f43c223
commit
7761911847
|
@ -1,18 +1,26 @@
|
||||||
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
|
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
|
||||||
--> $DIR/catch_type_errors.rs:6:30
|
--> $DIR/catch_type_errors.rs:6:30
|
||||||
|
|
|
|
||||||
6 | fn f1(_request: &Request) -> usize {
|
6 | fn f1(_request: &Request) -> usize {
|
||||||
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= note: required by `respond_to`
|
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
|
error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied
|
||||||
--> $DIR/catch_type_errors.rs:11:30
|
--> $DIR/catch_type_errors.rs:11:30
|
||||||
|
|
|
|
||||||
11 | fn f2(_request: &Request) -> bool {
|
11 | fn f2(_request: &Request) -> bool {
|
||||||
| ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool`
|
| ^^^^ the trait `Responder<'_, '_>` is not implemented for `bool`
|
||||||
|
|
|
|
||||||
= note: required by `respond_to`
|
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
|
error[E0308]: mismatched types
|
||||||
--> $DIR/catch_type_errors.rs:16:17
|
--> $DIR/catch_type_errors.rs:16:17
|
||||||
|
@ -21,17 +29,25 @@ error[E0308]: mismatched types
|
||||||
| ^^^^ expected `bool`, found `&rocket::Request<'_>`
|
| ^^^^ expected `bool`, found `&rocket::Request<'_>`
|
||||||
|
|
||||||
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
|
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
|
||||||
--> $DIR/catch_type_errors.rs:16:26
|
--> $DIR/catch_type_errors.rs:16:26
|
||||||
|
|
|
|
||||||
16 | fn f3(_request: bool) -> usize {
|
16 | fn f3(_request: bool) -> usize {
|
||||||
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= note: required by `respond_to`
|
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
|
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
|
||||||
--> $DIR/catch_type_errors.rs:21:12
|
--> $DIR/catch_type_errors.rs:21:12
|
||||||
|
|
|
|
||||||
21 | fn f4() -> usize {
|
21 | fn f4() -> usize {
|
||||||
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= note: required by `respond_to`
|
note: required by `respond_to`
|
||||||
|
--> $DIR/responder.rs:298:5
|
||||||
|
|
|
||||||
|
298 | fn respond_to(self, request: &'r Request<'_>) -> response::Result<'o>;
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
|
error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
|
||||||
--> $DIR/responder-types.rs:5:5
|
--> $DIR/responder-types.rs:5:5
|
||||||
|
|
|
|
||||||
5 | thing: u8,
|
5 | thing: u8,
|
||||||
| ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8`
|
| ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8`
|
||||||
|
|
|
|
||||||
= note: required by `respond_to`
|
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<u8>` is not satisfied
|
error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
|
||||||
--> $DIR/responder-types.rs:11:5
|
--> $DIR/responder-types.rs:11:5
|
||||||
|
@ -21,12 +25,16 @@ error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
|
||||||
= note: required because of the requirements on the impl of `Into<Header<'_>>` for `u8`
|
= note: required because of the requirements on the impl of `Into<Header<'_>>` for `u8`
|
||||||
|
|
||||||
error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
|
error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
|
||||||
--> $DIR/responder-types.rs:16:5
|
--> $DIR/responder-types.rs:16:5
|
||||||
|
|
|
|
||||||
16 | thing: u8,
|
16 | thing: u8,
|
||||||
| ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8`
|
| ^^^^^^^^^ the trait `Responder<'_, '_>` is not implemented for `u8`
|
||||||
|
|
|
|
||||||
= note: required by `respond_to`
|
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<u8>` is not satisfied
|
error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
|
||||||
--> $DIR/responder-types.rs:17:5
|
--> $DIR/responder-types.rs:17:5
|
||||||
|
@ -57,9 +65,13 @@ error[E0277]: the trait bound `Header<'_>: From<std::string::String>` is not sat
|
||||||
= note: required because of the requirements on the impl of `Into<Header<'_>>` for `std::string::String`
|
= note: required because of the requirements on the impl of `Into<Header<'_>>` for `std::string::String`
|
||||||
|
|
||||||
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
|
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
|
||||||
--> $DIR/responder-types.rs:28:13
|
--> $DIR/responder-types.rs:28:13
|
||||||
|
|
|
|
||||||
28 | fn foo() -> usize { 0 }
|
28 | fn foo() -> usize { 0 }
|
||||||
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= note: required by `route::handler::<impl Outcome<rocket::Response<'o>, Status, rocket::Data<'o>>>::from`
|
note: required by `route::handler::<impl Outcome<rocket::Response<'o>, Status, rocket::Data<'o>>>::from`
|
||||||
|
--> $DIR/handler.rs:188:5
|
||||||
|
|
|
||||||
|
188 | pub fn from<R: Responder<'r, 'o>>(req: &'r Request<'_>, responder: R) -> Outcome<'r> {
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
@ -1,18 +1,26 @@
|
||||||
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
||||||
--> $DIR/route-type-errors.rs:6:12
|
--> $DIR/route-type-errors.rs:6:12
|
||||||
|
|
|
|
||||||
6 | fn f0(foo: Q) {}
|
6 | fn f0(foo: Q) {}
|
||||||
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
||||||
|
|
|
|
||||||
= note: required by `from_param`
|
note: required by `from_param`
|
||||||
|
--> $DIR/from_param.rs:183:5
|
||||||
|
|
|
||||||
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied
|
error[E0277]: the trait bound `Q: FromSegments<'_>` is not satisfied
|
||||||
--> $DIR/route-type-errors.rs:9:12
|
--> $DIR/route-type-errors.rs:9:12
|
||||||
|
|
|
|
||||||
9 | fn f1(foo: Q) {}
|
9 | fn f1(foo: Q) {}
|
||||||
| ^ the trait `FromSegments<'_>` is not implemented for `Q`
|
| ^ the trait `FromSegments<'_>` is not implemented for `Q`
|
||||||
|
|
|
|
||||||
= note: required by `from_segments`
|
note: required by `from_segments`
|
||||||
|
--> $DIR/from_param.rs:291:5
|
||||||
|
|
|
||||||
|
291 | fn from_segments(segments: Segments<'r, Path>) -> Result<Self, Self::Error>;
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied
|
error[E0277]: the trait bound `Q: FromFormField<'_>` is not satisfied
|
||||||
--> $DIR/route-type-errors.rs:12:12
|
--> $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`
|
| -- required by this bound in `from_request`
|
||||||
|
|
||||||
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
||||||
--> $DIR/route-type-errors.rs:21:18
|
--> $DIR/route-type-errors.rs:21:18
|
||||||
|
|
|
|
||||||
21 | fn f5(a: Q, foo: Q) {}
|
21 | fn f5(a: Q, foo: Q) {}
|
||||||
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
||||||
|
|
|
|
||||||
= note: required by `from_param`
|
note: required by `from_param`
|
||||||
|
--> $DIR/from_param.rs:183:5
|
||||||
|
|
|
||||||
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied
|
error[E0277]: the trait bound `Q: FromRequest<'_>` is not satisfied
|
||||||
--> $DIR/route-type-errors.rs:24:10
|
--> $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`
|
| -- required by this bound in `from_request`
|
||||||
|
|
||||||
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
||||||
--> $DIR/route-type-errors.rs:24:18
|
--> $DIR/route-type-errors.rs:24:18
|
||||||
|
|
|
|
||||||
24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {}
|
24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {}
|
||||||
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
||||||
|
|
|
|
||||||
= note: required by `from_param`
|
note: required by `from_param`
|
||||||
|
--> $DIR/from_param.rs:183:5
|
||||||
|
|
|
||||||
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
error[E0277]: the trait bound `Q: FromParam<'_>` is not satisfied
|
||||||
--> $DIR/route-type-errors.rs:24:39
|
--> $DIR/route-type-errors.rs:24:39
|
||||||
|
|
|
|
||||||
24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {}
|
24 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {}
|
||||||
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
| ^ the trait `FromParam<'_>` is not implemented for `Q`
|
||||||
|
|
|
|
||||||
= note: required by `from_param`
|
note: required by `from_param`
|
||||||
|
--> $DIR/from_param.rs:183:5
|
||||||
|
|
|
||||||
|
183 | fn from_param(param: &'a str) -> Result<Self, Self::Error>;
|
||||||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
@ -5,116 +5,156 @@ error[E0271]: type mismatch resolving `<std::string::String as FromParam<'_>>::E
|
||||||
| ^^^^^^^^^^^^^^^^^^^^ expected enum `Infallible`, found `&str`
|
| ^^^^^^^^^^^^^^^^^^^^ expected enum `Infallible`, found `&str`
|
||||||
|
|
||||||
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:45:22
|
--> $DIR/typed-uri-bad-type.rs:45:22
|
||||||
|
|
|
|
||||||
45 | uri!(simple(id = "hi"));
|
45 | uri!(simple(id = "hi"));
|
||||||
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<usize as FromUriParam<P, &'x mut usize>>
|
<usize as FromUriParam<P, &'x mut usize>>
|
||||||
<usize as FromUriParam<P, &'x usize>>
|
<usize as FromUriParam<P, &'x usize>>
|
||||||
<usize as FromUriParam<P, usize>>
|
<usize as FromUriParam<P, usize>>
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:47:17
|
--> $DIR/typed-uri-bad-type.rs:47:17
|
||||||
|
|
|
|
||||||
47 | uri!(simple("hello"));
|
47 | uri!(simple("hello"));
|
||||||
| ^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
| ^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<usize as FromUriParam<P, &'x mut usize>>
|
<usize as FromUriParam<P, &'x mut usize>>
|
||||||
<usize as FromUriParam<P, &'x usize>>
|
<usize as FromUriParam<P, &'x usize>>
|
||||||
<usize as FromUriParam<P, usize>>
|
<usize as FromUriParam<P, usize>>
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Path, i64>` is not satisfied
|
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, i64>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:49:22
|
--> $DIR/typed-uri-bad-type.rs:49:22
|
||||||
|
|
|
|
||||||
49 | uri!(simple(id = 239239i64));
|
49 | uri!(simple(id = 239239i64));
|
||||||
| ^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, i64>` is not implemented for `usize`
|
| ^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, i64>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<usize as FromUriParam<P, &'x mut usize>>
|
<usize as FromUriParam<P, &'x mut usize>>
|
||||||
<usize as FromUriParam<P, &'x usize>>
|
<usize as FromUriParam<P, &'x usize>>
|
||||||
<usize as FromUriParam<P, usize>>
|
<usize as FromUriParam<P, usize>>
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Path, _>` is not satisfied
|
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Path, _>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:51:30
|
--> $DIR/typed-uri-bad-type.rs:51:30
|
||||||
|
|
|
|
||||||
51 | uri!(not_uri_display(10, S));
|
51 | uri!(not_uri_display(10, S));
|
||||||
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Path, _>` is not implemented for `S`
|
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Path, _>` is not implemented for `S`
|
||||||
|
|
|
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not satisfied
|
error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:56:25
|
--> $DIR/typed-uri-bad-type.rs:56:25
|
||||||
|
|
|
|
||||||
56 | uri!(optionals(id = Some(10), name = Ok("bob".into())));
|
56 | uri!(optionals(id = Some(10), name = Ok("bob".into())));
|
||||||
| ^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not implemented for `i32`
|
| ^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not implemented for `i32`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<i32 as FromUriParam<P, &'x i32>>
|
<i32 as FromUriParam<P, &'x i32>>
|
||||||
<i32 as FromUriParam<P, &'x mut i32>>
|
<i32 as FromUriParam<P, &'x mut i32>>
|
||||||
<i32 as FromUriParam<P, i32>>
|
<i32 as FromUriParam<P, i32>>
|
||||||
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` for `std::option::Option<i32>`
|
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` for `std::option::Option<i32>`
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Path, Result<_, _>>` is not satisfied
|
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:56:42
|
--> $DIR/typed-uri-bad-type.rs:56:42
|
||||||
|
|
|
|
||||||
56 | uri!(optionals(id = Some(10), name = Ok("bob".into())));
|
56 | uri!(optionals(id = Some(10), name = Ok("bob".into())));
|
||||||
| ^^^^^^^^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not implemented for `std::string::String`
|
| ^^^^^^^^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not implemented for `std::string::String`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<std::string::String as FromUriParam<P, &'a str>>
|
<std::string::String as FromUriParam<P, &'a str>>
|
||||||
<std::string::String as FromUriParam<P, &'x &'a str>>
|
<std::string::String as FromUriParam<P, &'x &'a str>>
|
||||||
<std::string::String as FromUriParam<P, &'x mut &'a str>>
|
<std::string::String as FromUriParam<P, &'x mut &'a str>>
|
||||||
<std::string::String as FromUriParam<P, &'x mut std::string::String>>
|
<std::string::String as FromUriParam<P, &'x mut std::string::String>>
|
||||||
and 2 others
|
and 2 others
|
||||||
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` for `Result<std::string::String, &str>`
|
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` for `Result<std::string::String, &str>`
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Query, &str>` is not satisfied
|
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:58:19
|
--> $DIR/typed-uri-bad-type.rs:58:19
|
||||||
|
|
|
|
||||||
58 | uri!(simple_q("hi"));
|
58 | uri!(simple_q("hi"));
|
||||||
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<isize as FromUriParam<P, &'x isize>>
|
<isize as FromUriParam<P, &'x isize>>
|
||||||
<isize as FromUriParam<P, &'x mut isize>>
|
<isize as FromUriParam<P, &'x mut isize>>
|
||||||
<isize as FromUriParam<P, isize>>
|
<isize as FromUriParam<P, isize>>
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Query, &str>` is not satisfied
|
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:60:24
|
--> $DIR/typed-uri-bad-type.rs:60:24
|
||||||
|
|
|
|
||||||
60 | uri!(simple_q(id = "hi"));
|
60 | uri!(simple_q(id = "hi"));
|
||||||
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<isize as FromUriParam<P, &'x isize>>
|
<isize as FromUriParam<P, &'x isize>>
|
||||||
<isize as FromUriParam<P, &'x mut isize>>
|
<isize as FromUriParam<P, &'x mut isize>>
|
||||||
<isize as FromUriParam<P, isize>>
|
<isize as FromUriParam<P, isize>>
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Query, _>` is not satisfied
|
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:62:23
|
--> $DIR/typed-uri-bad-type.rs:62:23
|
||||||
|
|
|
|
||||||
62 | uri!(other_q(100, S));
|
62 | uri!(other_q(100, S));
|
||||||
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
||||||
|
|
|
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Query, _>` is not satisfied
|
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:64:25
|
--> $DIR/typed-uri-bad-type.rs:64:25
|
||||||
|
|
|
|
||||||
64 | uri!(other_q(rest = S, id = 100));
|
64 | uri!(other_q(rest = S, id = 100));
|
||||||
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
||||||
|
|
|
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Query>` is not satisfied
|
error[E0277]: the trait bound `S: Ignorable<rocket::http::uri::fmt::Query>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:66:25
|
--> $DIR/typed-uri-bad-type.rs:66:25
|
||||||
|
@ -139,24 +179,32 @@ error[E0277]: the trait bound `usize: Ignorable<rocket::http::uri::fmt::Query>`
|
||||||
| ------------ required by this bound in `assert_ignorable`
|
| ------------ required by this bound in `assert_ignorable`
|
||||||
|
|
||||||
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
|
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:68:25
|
--> $DIR/typed-uri-bad-type.rs:68:25
|
||||||
|
|
|
|
||||||
68 | uri!(other_q(rest = S, id = _));
|
68 | uri!(other_q(rest = S, id = _));
|
||||||
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
| ^ the trait `FromUriParam<rocket::http::uri::fmt::Query, _>` is not implemented for `S`
|
||||||
|
|
|
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:77:40
|
--> $DIR/typed-uri-bad-type.rs:77:40
|
||||||
|
|
|
|
||||||
77 | uri!(uri!("?foo#bar"), simple(id = "hi"));
|
77 | uri!(uri!("?foo#bar"), simple(id = "hi"));
|
||||||
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<usize as FromUriParam<P, &'x mut usize>>
|
<usize as FromUriParam<P, &'x mut usize>>
|
||||||
<usize as FromUriParam<P, &'x usize>>
|
<usize as FromUriParam<P, &'x usize>>
|
||||||
<usize as FromUriParam<P, usize>>
|
<usize as FromUriParam<P, usize>>
|
||||||
= note: required by `from_uri_param`
|
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
|
error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefix` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:77:15
|
--> $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<'_>`
|
| ^^^^^^^^^^ the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Reference<'_>`
|
||||||
|
|
||||||
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:78:33
|
--> $DIR/typed-uri-bad-type.rs:78:33
|
||||||
|
|
|
|
||||||
78 | uri!(uri!("*"), simple(id = "hi"));
|
78 | uri!(uri!("*"), simple(id = "hi"));
|
||||||
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<usize as FromUriParam<P, &'x mut usize>>
|
<usize as FromUriParam<P, &'x mut usize>>
|
||||||
<usize as FromUriParam<P, &'x usize>>
|
<usize as FromUriParam<P, &'x usize>>
|
||||||
<usize as FromUriParam<P, usize>>
|
<usize as FromUriParam<P, usize>>
|
||||||
= note: required by `from_uri_param`
|
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
|
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:78:15
|
--> $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`
|
| ^^^ the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Asterisk`
|
||||||
|
|
||||||
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:81:25
|
--> $DIR/typed-uri-bad-type.rs:81:25
|
||||||
|
|
|
|
||||||
81 | uri!(_, simple(id = "hi"), uri!("*"));
|
81 | uri!(_, simple(id = "hi"), uri!("*"));
|
||||||
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<usize as FromUriParam<P, &'x mut usize>>
|
<usize as FromUriParam<P, &'x mut usize>>
|
||||||
<usize as FromUriParam<P, &'x usize>>
|
<usize as FromUriParam<P, &'x usize>>
|
||||||
<usize as FromUriParam<P, usize>>
|
<usize as FromUriParam<P, usize>>
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::Origin<'static>>` is not satisfied
|
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:81:37
|
--> $DIR/typed-uri-bad-type.rs:81:37
|
||||||
|
@ -201,16 +257,20 @@ error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix<roc
|
||||||
| ^^^ the trait `ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not implemented for `rocket::http::uri::Asterisk`
|
| ^^^ the trait `ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not implemented for `rocket::http::uri::Asterisk`
|
||||||
|
|
||||||
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:82:25
|
--> $DIR/typed-uri-bad-type.rs:82:25
|
||||||
|
|
|
|
||||||
82 | uri!(_, simple(id = "hi"), uri!("/foo/bar"));
|
82 | uri!(_, simple(id = "hi"), uri!("/foo/bar"));
|
||||||
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
||||||
|
|
|
|
||||||
= help: the following implementations were found:
|
= help: the following implementations were found:
|
||||||
<usize as FromUriParam<P, &'x mut usize>>
|
<usize as FromUriParam<P, &'x mut usize>>
|
||||||
<usize as FromUriParam<P, &'x usize>>
|
<usize as FromUriParam<P, &'x usize>>
|
||||||
<usize as FromUriParam<P, usize>>
|
<usize as FromUriParam<P, usize>>
|
||||||
= note: required by `from_uri_param`
|
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<rocket::http::uri::Origin<'static>>` is not satisfied
|
error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
|
||||||
--> $DIR/typed-uri-bad-type.rs:82:37
|
--> $DIR/typed-uri-bad-type.rs:82:37
|
||||||
|
|
Loading…
Reference in New Issue