Update UI tests for latest nightly.

This commit is contained in:
Sergio Benitez 2022-05-25 18:48:27 -07:00
parent a316991adf
commit 5a20d76926
9 changed files with 970 additions and 351 deletions

View File

@ -1,11 +1,15 @@
error[E0277]: the trait bound `Unknown: Poolable` is not satisfied error[E0277]: the trait bound `Unknown: Poolable` is not satisfied
--> $DIR/database-types.rs:7:10 --> tests/ui-fail/database-types.rs:7:10
| |
7 | struct A(Unknown); 7 | struct A(Unknown);
| ^^^^^^^ the trait `Poolable` is not implemented for `Unknown` | ^^^^^^^ the trait `Poolable` is not implemented for `Unknown`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
error[E0277]: the trait bound `Vec<i32>: Poolable` is not satisfied error[E0277]: the trait bound `Vec<i32>: Poolable` is not satisfied
--> $DIR/database-types.rs:11:10 --> tests/ui-fail/database-types.rs:11:10
| |
11 | struct B(Vec<i32>); 11 | struct B(Vec<i32>);
| ^^^^^^^^ the trait `Poolable` is not implemented for `Vec<i32>` | ^^^^^^^^ the trait `Poolable` is not implemented for `Vec<i32>`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`

View File

@ -1,21 +1,39 @@
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 --> tests/ui-fail/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` = help: the following other types implement trait `Responder<'r>`:
<&'r [u8] as Responder<'r>>
<&'r str as Responder<'r>>
<() as Responder<'r>>
<Content<R> as Responder<'r>>
<File as Responder<'r>>
<Flash<R> as Responder<'r>>
<JavaScript<R> as Responder<'r>>
<MsgPack<R> as Responder<'r>>
and 26 others
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:12:30 --> tests/ui-fail/catch_type_errors.rs:12:30
| |
12 | fn f2(_request: &Request) -> bool { 12 | 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` = help: the following other types implement trait `Responder<'r>`:
<&'r [u8] as Responder<'r>>
<&'r str as Responder<'r>>
<() as Responder<'r>>
<Content<R> as Responder<'r>>
<File as Responder<'r>>
<Flash<R> as Responder<'r>>
<JavaScript<R> as Responder<'r>>
<MsgPack<R> as Responder<'r>>
and 26 others
error[E0308]: mismatched types error[E0308]: mismatched types
--> $DIR/catch_type_errors.rs:18:7 --> tests/ui-fail/catch_type_errors.rs:18:7
| |
17 | #[catch(404)] 17 | #[catch(404)]
| ------------- expected due to this | ------------- expected due to this
@ -26,9 +44,18 @@ error[E0308]: mismatched types
found fn item `fn(bool) -> usize {f3}` found fn item `fn(bool) -> usize {f3}`
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:24:12 --> tests/ui-fail/catch_type_errors.rs:24:12
| |
24 | fn f4() -> usize { 24 | fn f4() -> usize {
| ^^^^^ the trait `Responder<'_>` is not implemented for `usize` | ^^^^^ the trait `Responder<'_>` is not implemented for `usize`
| |
= note: required by `respond_to` = help: the following other types implement trait `Responder<'r>`:
<&'r [u8] as Responder<'r>>
<&'r str as Responder<'r>>
<() as Responder<'r>>
<Content<R> as Responder<'r>>
<File as Responder<'r>>
<Flash<R> as Responder<'r>>
<JavaScript<R> as Responder<'r>>
<MsgPack<R> as Responder<'r>>
and 26 others

View File

@ -1,15 +1,33 @@
error[E0277]: the trait bound `Unknown: FromFormValue<'_>` is not satisfied error[E0277]: the trait bound `Unknown: FromFormValue<'_>` is not satisfied
--> $DIR/from_form_type_errors.rs:7:5 --> tests/ui-fail/from_form_type_errors.rs:7:5
| |
7 | field: Unknown, 7 | field: Unknown,
| ^^^^^^^^^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Unknown` | ^^^^^^^^^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Unknown`
| |
= note: required by `from_form_value` = help: the following other types implement trait `FromFormValue<'v>`:
&'v RawStr
IpAddr
Ipv4Addr
Ipv6Addr
NonZeroI128
NonZeroI16
NonZeroI32
NonZeroI64
and 29 others
error[E0277]: the trait bound `Foo<usize>: FromFormValue<'_>` is not satisfied error[E0277]: the trait bound `Foo<usize>: FromFormValue<'_>` is not satisfied
--> $DIR/from_form_type_errors.rs:15:5 --> tests/ui-fail/from_form_type_errors.rs:15:5
| |
15 | field: Foo<usize>, 15 | field: Foo<usize>,
| ^^^^^^^^^^^^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Foo<usize>` | ^^^^^^^^^^^^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Foo<usize>`
| |
= note: required by `from_form_value` = help: the following other types implement trait `FromFormValue<'v>`:
&'v RawStr
IpAddr
Ipv4Addr
Ipv6Addr
NonZeroI128
NonZeroI16
NonZeroI32
NonZeroI64
and 29 others

View File

@ -1,68 +1,124 @@
error[E0277]: the trait bound `u8: Responder<'_>` is not satisfied error[E0277]: the trait bound `u8: Responder<'_>` is not satisfied
--> $DIR/responder-types.rs:11:5 --> tests/ui-fail/responder-types.rs:11:5
| |
11 | thing: u8, 11 | thing: u8,
| ^^^^^^^^^ the trait `Responder<'_>` is not implemented for `u8` | ^^^^^^^^^ the trait `Responder<'_>` is not implemented for `u8`
| |
= note: required by `respond_to` = help: the following other types implement trait `Responder<'r>`:
<&'r [u8] as Responder<'r>>
<&'r str as Responder<'r>>
<() as Responder<'r>>
<Content<R> as Responder<'r>>
<File as Responder<'r>>
<Flash<R> as Responder<'r>>
<JavaScript<R> as Responder<'r>>
<MsgPack<R> as Responder<'r>>
and 30 others
error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From<u8>` is not satisfied error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From<u8>` is not satisfied
--> $DIR/responder-types.rs:18:5 --> tests/ui-fail/responder-types.rs:18:5
| |
18 | other: u8, 18 | other: u8,
| ^^^^^^^^^ the trait `std::convert::From<u8>` is not implemented for `rocket::http::Header<'_>` | ^^^^^^^^^ the trait `std::convert::From<u8>` is not implemented for `rocket::http::Header<'_>`
| |
= help: the following implementations were found: = help: the following other types implement trait `std::convert::From<T>`:
<rocket::http::Header<'static> as std::convert::From<&'a Cookie<'c>>> <rocket::http::Header<'static> as std::convert::From<&'a Cookie<'c>>>
<rocket::http::Header<'static> as std::convert::From<AcceptCharset>> <rocket::http::Header<'static> as std::convert::From<AcceptCharset>>
<rocket::http::Header<'static> as std::convert::From<AcceptEncoding>> <rocket::http::Header<'static> as std::convert::From<AcceptEncoding>>
<rocket::http::Header<'static> as std::convert::From<AcceptLanguage>> <rocket::http::Header<'static> as std::convert::From<AcceptLanguage>>
and 43 others <rocket::http::Header<'static> as std::convert::From<AcceptRanges>>
= note: required because of the requirements on the impl of `Into<rocket::http::Header<'_>>` for `u8` <rocket::http::Header<'static> as std::convert::From<AccessControlAllowCredentials>>
<rocket::http::Header<'static> as std::convert::From<AccessControlAllowHeaders>>
<rocket::http::Header<'static> as std::convert::From<AccessControlAllowMethods>>
and 39 others
= note: required because of the requirements on the impl of `Into<rocket::http::Header<'_>>` for `u8`
note: required by a bound in `rocket::Response::<'r>::set_header`
--> $WORKSPACE/core/lib/src/response/response.rs
|
| pub fn set_header<'h: 'r, H: Into<Header<'h>>>(&mut self, header: H) -> bool {
| ^^^^^^^^^^^^^^^^ required by this bound in `rocket::Response::<'r>::set_header`
error[E0277]: the trait bound `u8: Responder<'_>` is not satisfied error[E0277]: the trait bound `u8: Responder<'_>` is not satisfied
--> $DIR/responder-types.rs:24:5 --> tests/ui-fail/responder-types.rs:24:5
| |
24 | thing: u8, 24 | thing: u8,
| ^^^^^^^^^ the trait `Responder<'_>` is not implemented for `u8` | ^^^^^^^^^ the trait `Responder<'_>` is not implemented for `u8`
| |
= note: required by `respond_to` = help: the following other types implement trait `Responder<'r>`:
<&'r [u8] as Responder<'r>>
<&'r str as Responder<'r>>
<() as Responder<'r>>
<Content<R> as Responder<'r>>
<File as Responder<'r>>
<Flash<R> as Responder<'r>>
<JavaScript<R> as Responder<'r>>
<MsgPack<R> as Responder<'r>>
and 30 others
error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From<u8>` is not satisfied error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From<u8>` is not satisfied
--> $DIR/responder-types.rs:26:5 --> tests/ui-fail/responder-types.rs:26:5
| |
26 | other: u8, 26 | other: u8,
| ^^^^^^^^^ the trait `std::convert::From<u8>` is not implemented for `rocket::http::Header<'_>` | ^^^^^^^^^ the trait `std::convert::From<u8>` is not implemented for `rocket::http::Header<'_>`
| |
= help: the following implementations were found: = help: the following other types implement trait `std::convert::From<T>`:
<rocket::http::Header<'static> as std::convert::From<&'a Cookie<'c>>> <rocket::http::Header<'static> as std::convert::From<&'a Cookie<'c>>>
<rocket::http::Header<'static> as std::convert::From<AcceptCharset>> <rocket::http::Header<'static> as std::convert::From<AcceptCharset>>
<rocket::http::Header<'static> as std::convert::From<AcceptEncoding>> <rocket::http::Header<'static> as std::convert::From<AcceptEncoding>>
<rocket::http::Header<'static> as std::convert::From<AcceptLanguage>> <rocket::http::Header<'static> as std::convert::From<AcceptLanguage>>
and 43 others <rocket::http::Header<'static> as std::convert::From<AcceptRanges>>
= note: required because of the requirements on the impl of `Into<rocket::http::Header<'_>>` for `u8` <rocket::http::Header<'static> as std::convert::From<AccessControlAllowCredentials>>
<rocket::http::Header<'static> as std::convert::From<AccessControlAllowHeaders>>
<rocket::http::Header<'static> as std::convert::From<AccessControlAllowMethods>>
and 39 others
= note: required because of the requirements on the impl of `Into<rocket::http::Header<'_>>` for `u8`
note: required by a bound in `rocket::Response::<'r>::set_header`
--> $WORKSPACE/core/lib/src/response/response.rs
|
| pub fn set_header<'h: 'r, H: Into<Header<'h>>>(&mut self, header: H) -> bool {
| ^^^^^^^^^^^^^^^^ required by this bound in `rocket::Response::<'r>::set_header`
error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From<std::string::String>` is not satisfied error[E0277]: the trait bound `rocket::http::Header<'_>: std::convert::From<std::string::String>` is not satisfied
--> $DIR/responder-types.rs:34:5 --> tests/ui-fail/responder-types.rs:34:5
| |
34 | then: String, 34 | then: String,
| ^^^^^^^^^^^^ the trait `std::convert::From<std::string::String>` is not implemented for `rocket::http::Header<'_>` | ^^^^^^^^^^^^ the trait `std::convert::From<std::string::String>` is not implemented for `rocket::http::Header<'_>`
| |
= help: the following implementations were found: = help: the following other types implement trait `std::convert::From<T>`:
<rocket::http::Header<'static> as std::convert::From<&'a Cookie<'c>>> <rocket::http::Header<'static> as std::convert::From<&'a Cookie<'c>>>
<rocket::http::Header<'static> as std::convert::From<AcceptCharset>> <rocket::http::Header<'static> as std::convert::From<AcceptCharset>>
<rocket::http::Header<'static> as std::convert::From<AcceptEncoding>> <rocket::http::Header<'static> as std::convert::From<AcceptEncoding>>
<rocket::http::Header<'static> as std::convert::From<AcceptLanguage>> <rocket::http::Header<'static> as std::convert::From<AcceptLanguage>>
and 43 others <rocket::http::Header<'static> as std::convert::From<AcceptRanges>>
= note: required because of the requirements on the impl of `Into<rocket::http::Header<'_>>` for `std::string::String` <rocket::http::Header<'static> as std::convert::From<AccessControlAllowCredentials>>
<rocket::http::Header<'static> as std::convert::From<AccessControlAllowHeaders>>
<rocket::http::Header<'static> as std::convert::From<AccessControlAllowMethods>>
and 39 others
= note: required because of the requirements on the impl of `Into<rocket::http::Header<'_>>` for `std::string::String`
note: required by a bound in `rocket::Response::<'r>::set_header`
--> $WORKSPACE/core/lib/src/response/response.rs
|
| pub fn set_header<'h: 'r, H: Into<Header<'h>>>(&mut self, header: H) -> bool {
| ^^^^^^^^^^^^^^^^ required by this bound in `rocket::Response::<'r>::set_header`
error[E0277]: the trait bound `usize: Responder<'_>` is not satisfied error[E0277]: the trait bound `usize: Responder<'_>` is not satisfied
--> $DIR/responder-types.rs:39:13 --> tests/ui-fail/responder-types.rs:39:13
| |
39 | fn foo() -> usize { 0 } 39 | fn foo() -> usize { 0 }
| ^^^^^ the trait `Responder<'_>` is not implemented for `usize` | ^^^^^ the trait `Responder<'_>` is not implemented for `usize`
| |
::: $WORKSPACE/core/lib/src/handler.rs = help: the following other types implement trait `Responder<'r>`:
<&'r [u8] as Responder<'r>>
<&'r str as Responder<'r>>
<() as Responder<'r>>
<Content<R> as Responder<'r>>
<File as Responder<'r>>
<Flash<R> as Responder<'r>>
<JavaScript<R> as Responder<'r>>
<MsgPack<R> as Responder<'r>>
and 30 others
note: required by a bound in `handler::<impl Outcome<rocket::Response<'r>, rocket::http::Status, rocket::Data>>::from`
--> $WORKSPACE/core/lib/src/handler.rs
| |
| pub fn from<T: Responder<'r>>(req: &Request, responder: T) -> Outcome<'r> { | pub fn from<T: Responder<'r>>(req: &Request, responder: T) -> Outcome<'r> {
| ------------- required by this bound in `handler::<impl Outcome<rocket::Response<'r>, rocket::http::Status, rocket::Data>>::from` | ^^^^^^^^^^^^^ required by this bound in `handler::<impl Outcome<rocket::Response<'r>, rocket::http::Status, rocket::Data>>::from`

View File

@ -1,79 +1,153 @@
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:8:7 --> tests/ui-fail/route-type-errors.rs:8:7
| |
8 | fn f0(foo: Q) {} //~ ERROR FromParam 8 | fn f0(foo: Q) {} //~ ERROR FromParam
| ^^^^^^ the trait `FromParam<'_>` is not implemented for `Q` | ^^^^^^ the trait `FromParam<'_>` is not implemented for `Q`
| |
= note: required by `from_param` = help: the following other types implement trait `FromParam<'a>`:
&'a RawStr
Cow<'a, str>
IpAddr
Ipv4Addr
Ipv6Addr
NonZeroI128
NonZeroI16
NonZeroI32
and 30 others
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:11:7 --> tests/ui-fail/route-type-errors.rs:11:7
| |
11 | fn f1(foo: Q) {} //~ ERROR FromSegments 11 | fn f1(foo: Q) {} //~ ERROR FromSegments
| ^^^^^^ the trait `FromSegments<'_>` is not implemented for `Q` | ^^^^^^ the trait `FromSegments<'_>` is not implemented for `Q`
| |
= note: required by `from_segments` = help: the following other types implement trait `FromSegments<'a>`:
Option<T>
PathBuf
Result<T, <T as FromSegments<'a>>::Error>
Segments<'a>
error[E0277]: the trait bound `Q: FromFormValue<'_>` is not satisfied error[E0277]: the trait bound `Q: FromFormValue<'_>` is not satisfied
--> $DIR/route-type-errors.rs:14:7 --> tests/ui-fail/route-type-errors.rs:14:7
| |
14 | fn f2(foo: Q) {} //~ ERROR FromFormValue 14 | fn f2(foo: Q) {} //~ ERROR FromFormValue
| ^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Q` | ^^^^^^ the trait `FromFormValue<'_>` is not implemented for `Q`
| |
= note: required by `from_form_value` = help: the following other types implement trait `FromFormValue<'v>`:
&'v RawStr
IpAddr
Ipv4Addr
Ipv6Addr
NonZeroI128
NonZeroI16
NonZeroI32
NonZeroI64
and 29 others
error[E0277]: the trait bound `Q: FromQuery<'_>` is not satisfied error[E0277]: the trait bound `Q: FromQuery<'_>` is not satisfied
--> $DIR/route-type-errors.rs:17:7 --> tests/ui-fail/route-type-errors.rs:17:7
| |
17 | fn f3(foo: Q) {} //~ ERROR FromQuery 17 | fn f3(foo: Q) {} //~ ERROR FromQuery
| ^^^^^^ the trait `FromQuery<'_>` is not implemented for `Q` | ^^^^^^ the trait `FromQuery<'_>` is not implemented for `Q`
| |
= note: required by `from_query` = help: the following other types implement trait `FromQuery<'q>`:
Form<T>
LenientForm<T>
Option<T>
Result<T, <T as FromQuery<'q>>::Error>
error[E0277]: the trait bound `Q: FromDataSimple` is not satisfied error[E0277]: the trait bound `Q: FromDataSimple` is not satisfied
--> $DIR/route-type-errors.rs:20:7 --> tests/ui-fail/route-type-errors.rs:20:7
| |
20 | fn f4(foo: Q) {} //~ ERROR FromData 20 | fn f4(foo: Q) {} //~ ERROR FromData
| ^^^^^^ the trait `FromDataSimple` is not implemented for `Q` | ^^^^^^ the trait `FromDataSimple` is not implemented for `Q`
| |
= help: the following other types implement trait `FromDataSimple`:
Vec<u8>
std::string::String
= note: required because of the requirements on the impl of `FromData<'_>` for `Q` = note: required because of the requirements on the impl of `FromData<'_>` for `Q`
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:23:7 --> tests/ui-fail/route-type-errors.rs:23:7
| |
23 | fn f5(a: Q, foo: Q) {} 23 | fn f5(a: Q, foo: Q) {}
| ^^^^ the trait `FromRequest<'_, '_>` is not implemented for `Q` | ^^^^ the trait `FromRequest<'_, '_>` is not implemented for `Q`
| |
= note: required by `from_request` = help: the following other types implement trait `FromRequest<'a, 'r>`:
&'a rocket::http::Accept
&'a rocket::http::ContentType
&'a rocket::http::uri::Origin<'a>
&'r Route
Cookies<'a>
Flash<&'a rocket::Request<'r>>
Option<T>
Result<T, <T as FromRequest<'a, 'r>>::Error>
and 3 others
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:23:13 --> tests/ui-fail/route-type-errors.rs:23:13
| |
23 | fn f5(a: Q, foo: Q) {} 23 | 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` = help: the following other types implement trait `FromParam<'a>`:
&'a RawStr
Cow<'a, str>
IpAddr
Ipv4Addr
Ipv6Addr
NonZeroI128
NonZeroI16
NonZeroI32
and 30 others
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:28:7 --> tests/ui-fail/route-type-errors.rs:28:7
| |
28 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} 28 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {}
| ^^^^ the trait `FromRequest<'_, '_>` is not implemented for `Q` | ^^^^ the trait `FromRequest<'_, '_>` is not implemented for `Q`
| |
= note: required by `from_request` = help: the following other types implement trait `FromRequest<'a, 'r>`:
&'a rocket::http::Accept
&'a rocket::http::ContentType
&'a rocket::http::uri::Origin<'a>
&'r Route
Cookies<'a>
Flash<&'a rocket::Request<'r>>
Option<T>
Result<T, <T as FromRequest<'a, 'r>>::Error>
and 3 others
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:28:13 --> tests/ui-fail/route-type-errors.rs:28:13
| |
28 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} 28 | 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` = help: the following other types implement trait `FromParam<'a>`:
&'a RawStr
Cow<'a, str>
IpAddr
Ipv4Addr
Ipv6Addr
NonZeroI128
NonZeroI16
NonZeroI32
and 30 others
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:28:34 --> tests/ui-fail/route-type-errors.rs:28:34
| |
28 | fn f6(a: Q, foo: Q, good: usize, bar: Q) {} 28 | 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` = help: the following other types implement trait `FromParam<'a>`:
&'a RawStr
Cow<'a, str>
IpAddr
Ipv4Addr
Ipv6Addr
NonZeroI128
NonZeroI16
NonZeroI32
and 30 others

View File

@ -1,151 +1,226 @@
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::Path, &str>` is not satisfied error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::Path, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:50:23 --> tests/ui-fail/typed-uri-bad-type.rs:50:23
| |
50 | uri!(simple: id = "hi"); 50 | uri!(simple: id = "hi");
| ^^^^ the trait `FromUriParam<rocket::http::uri::Path, &str>` is not implemented for `usize` | ^^^^ the trait `FromUriParam<rocket::http::uri::Path, &str>` is not implemented for `usize`
| |
= help: the following implementations were found: = help: the following other types implement trait `FromUriParam<P, T>`:
<usize as FromUriParam<P, &'x mut usize>> <f32 as FromUriParam<P, &'x f32>>
<usize as FromUriParam<P, &'x usize>> <f32 as FromUriParam<P, &'x mut f32>>
<usize as FromUriParam<P, usize>> <f32 as FromUriParam<P, f32>>
= note: required by `from_uri_param` <f64 as FromUriParam<P, &'x f64>>
<f64 as FromUriParam<P, &'x mut f64>>
<f64 as FromUriParam<P, f64>>
<i128 as FromUriParam<P, &'x i128>>
<i128 as FromUriParam<P, &'x mut i128>>
and 34 others
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::Path, &str>` is not satisfied error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::Path, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:53:18 --> tests/ui-fail/typed-uri-bad-type.rs:53:18
| |
53 | uri!(simple: "hello"); 53 | uri!(simple: "hello");
| ^^^^^^^ the trait `FromUriParam<rocket::http::uri::Path, &str>` is not implemented for `usize` | ^^^^^^^ the trait `FromUriParam<rocket::http::uri::Path, &str>` is not implemented for `usize`
| |
= help: the following implementations were found: = help: the following other types implement trait `FromUriParam<P, T>`:
<usize as FromUriParam<P, &'x mut usize>> <f32 as FromUriParam<P, &'x f32>>
<usize as FromUriParam<P, &'x usize>> <f32 as FromUriParam<P, &'x mut f32>>
<usize as FromUriParam<P, usize>> <f32 as FromUriParam<P, f32>>
= note: required by `from_uri_param` <f64 as FromUriParam<P, &'x f64>>
<f64 as FromUriParam<P, &'x mut f64>>
<f64 as FromUriParam<P, f64>>
<i128 as FromUriParam<P, &'x i128>>
<i128 as FromUriParam<P, &'x mut i128>>
and 34 others
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::Path, i64>` is not satisfied error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::Path, i64>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:56:23 --> tests/ui-fail/typed-uri-bad-type.rs:56:23
| |
56 | uri!(simple: id = 239239i64); 56 | uri!(simple: id = 239239i64);
| ^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::Path, i64>` is not implemented for `usize` | ^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::Path, i64>` is not implemented for `usize`
| |
= help: the following implementations were found: = help: the following other types implement trait `FromUriParam<P, T>`:
<usize as FromUriParam<P, &'x mut usize>> <f32 as FromUriParam<P, &'x f32>>
<usize as FromUriParam<P, &'x usize>> <f32 as FromUriParam<P, &'x mut f32>>
<usize as FromUriParam<P, usize>> <f32 as FromUriParam<P, f32>>
= note: required by `from_uri_param` <f64 as FromUriParam<P, &'x f64>>
<f64 as FromUriParam<P, &'x mut f64>>
<f64 as FromUriParam<P, f64>>
<i128 as FromUriParam<P, &'x i128>>
<i128 as FromUriParam<P, &'x mut i128>>
and 34 others
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Path, _>` is not satisfied error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Path, _>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:59:31 --> tests/ui-fail/typed-uri-bad-type.rs:59:31
| |
59 | uri!(not_uri_display: 10, S); 59 | uri!(not_uri_display: 10, S);
| ^ the trait `FromUriParam<rocket::http::uri::Path, _>` is not implemented for `S` | ^ the trait `FromUriParam<rocket::http::uri::Path, _>` is not implemented for `S`
| |
= note: required by `from_uri_param` = help: the following other types implement trait `FromUriParam<P, T>`:
<&'a RawStr as FromUriParam<P, &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut std::string::String>>
<&'a RawStr as FromUriParam<P, &'x std::string::String>>
<&'a RawStr as FromUriParam<P, std::string::String>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'a std::path::Path>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'x &'a std::path::Path>>
and 88 others
error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::Path, Option<{integer}>>` is not satisfied error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::Path, Option<{integer}>>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:65:26 --> tests/ui-fail/typed-uri-bad-type.rs:65:26
| |
65 | uri!(optionals: id = Some(10), name = Ok("bob".into())); 65 | uri!(optionals: id = Some(10), name = Ok("bob".into()));
| ^^^^ the trait `FromUriParam<rocket::http::uri::Path, Option<{integer}>>` is not implemented for `i32` | ^^^^ the trait `FromUriParam<rocket::http::uri::Path, Option<{integer}>>` is not implemented for `i32`
| |
= help: the following implementations were found: = help: the following other types implement trait `FromUriParam<P, T>`:
<i32 as FromUriParam<P, &'x i32>> <f32 as FromUriParam<P, &'x f32>>
<i32 as FromUriParam<P, &'x mut i32>> <f32 as FromUriParam<P, &'x mut f32>>
<i32 as FromUriParam<P, i32>> <f32 as FromUriParam<P, f32>>
<f64 as FromUriParam<P, &'x f64>>
<f64 as FromUriParam<P, &'x mut f64>>
<f64 as FromUriParam<P, f64>>
<i128 as FromUriParam<P, &'x i128>>
<i128 as FromUriParam<P, &'x mut i128>>
and 34 others
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, Option<{integer}>>` for `Option<i32>` = note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, Option<{integer}>>` for `Option<i32>`
= note: required by `from_uri_param`
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::Path, Result<_, _>>` is not satisfied error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::Path, Result<_, _>>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:65:43 --> tests/ui-fail/typed-uri-bad-type.rs:65:43
| |
65 | uri!(optionals: id = Some(10), name = Ok("bob".into())); 65 | uri!(optionals: id = Some(10), name = Ok("bob".into()));
| ^^ the trait `FromUriParam<rocket::http::uri::Path, Result<_, _>>` is not implemented for `std::string::String` | ^^ the trait `FromUriParam<rocket::http::uri::Path, Result<_, _>>` is not implemented for `std::string::String`
| |
= help: the following implementations were found: = help: the following other types implement trait `FromUriParam<P, T>`:
<&'a str as FromUriParam<P, &'a str>>
<&'a str as FromUriParam<P, &'x &'a str>>
<&'a str as FromUriParam<P, &'x mut &'a str>>
<&'a str as FromUriParam<P, &'x mut std::string::String>>
<&'a str as FromUriParam<P, &'x std::string::String>>
<&'a str as FromUriParam<P, std::string::String>>
<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>> and 4 others
<std::string::String as FromUriParam<P, &'x mut std::string::String>>
and 2 others
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, Result<_, _>>` for `Result<std::string::String, &RawStr>` = note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, Result<_, _>>` for `Result<std::string::String, &RawStr>`
= note: required by `from_uri_param`
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::Query, &str>` is not satisfied error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::Query, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:69:20 --> tests/ui-fail/typed-uri-bad-type.rs:69:20
| |
69 | uri!(simple_q: "hi"); 69 | uri!(simple_q: "hi");
| ^^^^ the trait `FromUriParam<rocket::http::uri::Query, &str>` is not implemented for `isize` | ^^^^ the trait `FromUriParam<rocket::http::uri::Query, &str>` is not implemented for `isize`
| |
= help: the following implementations were found: = help: the following other types implement trait `FromUriParam<P, T>`:
<isize as FromUriParam<P, &'x isize>> <f32 as FromUriParam<P, &'x f32>>
<isize as FromUriParam<P, &'x mut isize>> <f32 as FromUriParam<P, &'x mut f32>>
<isize as FromUriParam<P, isize>> <f32 as FromUriParam<P, f32>>
= note: required by `from_uri_param` <f64 as FromUriParam<P, &'x f64>>
<f64 as FromUriParam<P, &'x mut f64>>
<f64 as FromUriParam<P, f64>>
<i128 as FromUriParam<P, &'x i128>>
<i128 as FromUriParam<P, &'x mut i128>>
and 34 others
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::Query, &str>` is not satisfied error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::Query, &str>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:72:25 --> tests/ui-fail/typed-uri-bad-type.rs:72:25
| |
72 | uri!(simple_q: id = "hi"); 72 | uri!(simple_q: id = "hi");
| ^^^^ the trait `FromUriParam<rocket::http::uri::Query, &str>` is not implemented for `isize` | ^^^^ the trait `FromUriParam<rocket::http::uri::Query, &str>` is not implemented for `isize`
| |
= help: the following implementations were found: = help: the following other types implement trait `FromUriParam<P, T>`:
<isize as FromUriParam<P, &'x isize>> <f32 as FromUriParam<P, &'x f32>>
<isize as FromUriParam<P, &'x mut isize>> <f32 as FromUriParam<P, &'x mut f32>>
<isize as FromUriParam<P, isize>> <f32 as FromUriParam<P, f32>>
= note: required by `from_uri_param` <f64 as FromUriParam<P, &'x f64>>
<f64 as FromUriParam<P, &'x mut f64>>
<f64 as FromUriParam<P, f64>>
<i128 as FromUriParam<P, &'x i128>>
<i128 as FromUriParam<P, &'x mut i128>>
and 34 others
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Query, _>` is not satisfied error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Query, _>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:75:24 --> tests/ui-fail/typed-uri-bad-type.rs:75:24
| |
75 | uri!(other_q: 100, S); 75 | uri!(other_q: 100, S);
| ^ the trait `FromUriParam<rocket::http::uri::Query, _>` is not implemented for `S` | ^ the trait `FromUriParam<rocket::http::uri::Query, _>` is not implemented for `S`
| |
= note: required by `from_uri_param` = help: the following other types implement trait `FromUriParam<P, T>`:
<&'a RawStr as FromUriParam<P, &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut std::string::String>>
<&'a RawStr as FromUriParam<P, &'x std::string::String>>
<&'a RawStr as FromUriParam<P, std::string::String>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'a std::path::Path>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'x &'a std::path::Path>>
and 88 others
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Query, _>` is not satisfied error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Query, _>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:78:26 --> tests/ui-fail/typed-uri-bad-type.rs:78:26
| |
78 | uri!(other_q: rest = S, id = 100); 78 | uri!(other_q: rest = S, id = 100);
| ^ the trait `FromUriParam<rocket::http::uri::Query, _>` is not implemented for `S` | ^ the trait `FromUriParam<rocket::http::uri::Query, _>` is not implemented for `S`
| |
= note: required by `from_uri_param` = help: the following other types implement trait `FromUriParam<P, T>`:
<&'a RawStr as FromUriParam<P, &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut std::string::String>>
<&'a RawStr as FromUriParam<P, &'x std::string::String>>
<&'a RawStr as FromUriParam<P, std::string::String>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'a std::path::Path>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'x &'a std::path::Path>>
and 88 others
error[E0277]: the trait bound `S: Ignorable<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `S: Ignorable<rocket::http::uri::Query>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:42:29 --> tests/ui-fail/typed-uri-bad-type.rs:42:29
| |
42 | fn other_q(id: usize, rest: S) { } 42 | fn other_q(id: usize, rest: S) { }
| ^ the trait `Ignorable<rocket::http::uri::Query>` is not implemented for `S` | ^ the trait `Ignorable<rocket::http::uri::Query>` is not implemented for `S`
... ...
81 | uri!(other_q: rest = _, id = 100); 81 | uri!(other_q: rest = _, id = 100);
| ---------------------------------- in this macro invocation | --------------------------------- in this macro invocation
| |
::: $WORKSPACE/core/http/src/uri/uri_display.rs = help: the following other types implement trait `Ignorable<P>`:
Option<T>
Result<T, E>
note: required by a bound in `assert_ignorable`
--> $WORKSPACE/core/http/src/uri/uri_display.rs
| |
| pub fn assert_ignorable<P: UriPart, T: Ignorable<P>>() { } | pub fn assert_ignorable<P: UriPart, T: Ignorable<P>>() { }
| ------------ required by this bound in `assert_ignorable` | ^^^^^^^^^^^^ required by this bound in `assert_ignorable`
|
= note: this error originates in the macro `rocket_uri_macro_other_q` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `rocket_uri_macro_other_q` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `usize: Ignorable<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `usize: Ignorable<rocket::http::uri::Query>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:42:16 --> tests/ui-fail/typed-uri-bad-type.rs:42:16
| |
42 | fn other_q(id: usize, rest: S) { } 42 | fn other_q(id: usize, rest: S) { }
| ^^^^^ the trait `Ignorable<rocket::http::uri::Query>` is not implemented for `usize` | ^^^^^ the trait `Ignorable<rocket::http::uri::Query>` is not implemented for `usize`
... ...
83 | uri!(other_q: rest = S, id = _); 83 | uri!(other_q: rest = S, id = _);
| -------------------------------- in this macro invocation | ------------------------------- in this macro invocation
| |
::: $WORKSPACE/core/http/src/uri/uri_display.rs = help: the following other types implement trait `Ignorable<P>`:
Option<T>
Result<T, E>
note: required by a bound in `assert_ignorable`
--> $WORKSPACE/core/http/src/uri/uri_display.rs
| |
| pub fn assert_ignorable<P: UriPart, T: Ignorable<P>>() { } | pub fn assert_ignorable<P: UriPart, T: Ignorable<P>>() { }
| ------------ required by this bound in `assert_ignorable` | ^^^^^^^^^^^^ required by this bound in `assert_ignorable`
|
= note: this error originates in the macro `rocket_uri_macro_other_q` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `rocket_uri_macro_other_q` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Query, _>` is not satisfied error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::Query, _>` is not satisfied
--> $DIR/typed-uri-bad-type.rs:83:26 --> tests/ui-fail/typed-uri-bad-type.rs:83:26
| |
83 | uri!(other_q: rest = S, id = _); 83 | uri!(other_q: rest = S, id = _);
| ^ the trait `FromUriParam<rocket::http::uri::Query, _>` is not implemented for `S` | ^ the trait `FromUriParam<rocket::http::uri::Query, _>` is not implemented for `S`
| |
= note: required by `from_uri_param` = help: the following other types implement trait `FromUriParam<P, T>`:
<&'a RawStr as FromUriParam<P, &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut &'a RawStr>>
<&'a RawStr as FromUriParam<P, &'x mut std::string::String>>
<&'a RawStr as FromUriParam<P, &'x std::string::String>>
<&'a RawStr as FromUriParam<P, std::string::String>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'a std::path::Path>>
<&'a std::path::Path as FromUriParam<rocket::http::uri::Path, &'x &'a std::path::Path>>
and 88 others

View File

@ -1,65 +1,65 @@
error: named and unnamed parameters cannot be mixed error: named and unnamed parameters cannot be mixed
--> $DIR/typed-uris-invalid-syntax.rs:9:18 --> tests/ui-fail/typed-uris-invalid-syntax.rs:9:18
| |
9 | uri!(simple: id = 100, "Hello"); //~ ERROR named and unnamed 9 | uri!(simple: id = 100, "Hello"); //~ ERROR named and unnamed
| ^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^
error: named and unnamed parameters cannot be mixed error: named and unnamed parameters cannot be mixed
--> $DIR/typed-uris-invalid-syntax.rs:10:18 --> tests/ui-fail/typed-uris-invalid-syntax.rs:10:18
| |
10 | uri!(simple: "Hello", id = 100); //~ ERROR named and unnamed 10 | uri!(simple: "Hello", id = 100); //~ ERROR named and unnamed
| ^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^
error: expected `:` error: expected `:`
--> $DIR/typed-uris-invalid-syntax.rs:11:16 --> tests/ui-fail/typed-uris-invalid-syntax.rs:11:16
| |
11 | uri!(simple,); //~ ERROR expected `:` 11 | uri!(simple,); //~ ERROR expected `:`
| ^ | ^
error: expected argument list after `:` error: expected argument list after `:`
--> $DIR/typed-uris-invalid-syntax.rs:12:16 --> tests/ui-fail/typed-uris-invalid-syntax.rs:12:16
| |
12 | uri!(simple:); //~ ERROR argument list 12 | uri!(simple:); //~ ERROR argument list
| ^ | ^
error: unexpected end of input: expected ',' followed by route path error: unexpected end of input: expected ',' followed by route path
--> $DIR/typed-uris-invalid-syntax.rs:13:10 --> tests/ui-fail/typed-uris-invalid-syntax.rs:13:10
| |
13 | uri!("/mount"); //~ ERROR route path 13 | uri!("/mount"); //~ ERROR route path
| ^^^^^^^^ | ^^^^^^^^
error: unexpected end of input, expected identifier error: unexpected end of input, expected identifier
--> $DIR/typed-uris-invalid-syntax.rs:14:5 --> tests/ui-fail/typed-uris-invalid-syntax.rs:14:5
| |
14 | uri!("/mount",); //~ ERROR expected identifier 14 | uri!("/mount",); //~ ERROR expected identifier
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
| |
= note: this error originates in the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid mount point; mount points must be static, absolute URIs: `/example` error: invalid mount point; mount points must be static, absolute URIs: `/example`
--> $DIR/typed-uris-invalid-syntax.rs:15:10 --> tests/ui-fail/typed-uris-invalid-syntax.rs:15:10
| |
15 | uri!("mount", simple); //~ invalid mount point 15 | uri!("mount", simple); //~ invalid mount point
| ^^^^^^^ | ^^^^^^^
error: invalid mount point; mount points must be static, absolute URIs: `/example` error: invalid mount point; mount points must be static, absolute URIs: `/example`
--> $DIR/typed-uris-invalid-syntax.rs:16:10 --> tests/ui-fail/typed-uris-invalid-syntax.rs:16:10
| |
16 | uri!("/mount/<id>", simple); //~ invalid mount point 16 | uri!("/mount/<id>", simple); //~ invalid mount point
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
error: unexpected end of input, call to `uri!` cannot be empty error: unexpected end of input, call to `uri!` cannot be empty
--> $DIR/typed-uris-invalid-syntax.rs:17:5 --> tests/ui-fail/typed-uris-invalid-syntax.rs:17:5
| |
17 | uri!(); //~ unexpected end of input 17 | uri!(); //~ unexpected end of input
| ^^^^^^^ | ^^^^^^
| |
= note: this error originates in the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info)
error: unexpected end of input, expected expression error: unexpected end of input, expected expression
--> $DIR/typed-uris-invalid-syntax.rs:18:5 --> tests/ui-fail/typed-uris-invalid-syntax.rs:18:5
| |
18 | uri!(simple: id = ); //~ expected expression 18 | uri!(simple: id = ); //~ expected expression
| ^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^
| |
= note: this error originates in the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `uri` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@ -1,122 +1,122 @@
error: fieldless structs or variants are not supported error: fieldless structs or variants are not supported
--> $DIR/uri_display.rs:9:1 --> tests/ui-fail/uri_display.rs:9:1
| |
9 | struct Foo1; 9 | struct Foo1;
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:5:10 --> tests/ui-fail/uri_display.rs:5:10
| |
5 | #[derive(UriDisplayQuery)] 5 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error: fieldless structs or variants are not supported error: fieldless structs or variants are not supported
--> $DIR/uri_display.rs:16:1 --> tests/ui-fail/uri_display.rs:16:1
| |
16 | struct Foo2(); 16 | struct Foo2();
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:12:10 --> tests/ui-fail/uri_display.rs:12:10
| |
12 | #[derive(UriDisplayQuery)] 12 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error: empty enums are not supported error: empty enums are not supported
--> $DIR/uri_display.rs:23:1 --> tests/ui-fail/uri_display.rs:23:1
| |
23 | enum Foo3 { } 23 | enum Foo3 { }
| ^^^^^^^^^^^^^ | ^^^^^^^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:19:10 --> tests/ui-fail/uri_display.rs:19:10
| |
19 | #[derive(UriDisplayQuery)] 19 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error: fieldless structs or variants are not supported error: fieldless structs or variants are not supported
--> $DIR/uri_display.rs:31:5 --> tests/ui-fail/uri_display.rs:31:5
| |
31 | Variant, 31 | Variant,
| ^^^^^^^ | ^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:26:10 --> tests/ui-fail/uri_display.rs:26:10
| |
26 | #[derive(UriDisplayQuery)] 26 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error: tuple structs or variants must have exactly one field error: tuple structs or variants must have exactly one field
--> $DIR/uri_display.rs:39:12 --> tests/ui-fail/uri_display.rs:39:12
| |
39 | struct Foo5(String, String); 39 | struct Foo5(String, String);
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:35:10 --> tests/ui-fail/uri_display.rs:35:10
| |
35 | #[derive(UriDisplayQuery)] 35 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error: invalid value: expected string literal error: invalid value: expected string literal
--> $DIR/uri_display.rs:47:20 --> tests/ui-fail/uri_display.rs:47:20
| |
47 | #[form(field = 123)] 47 | #[form(field = 123)]
| ^^^ | ^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:42:10 --> tests/ui-fail/uri_display.rs:42:10
| |
42 | #[derive(UriDisplayQuery)] 42 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error: struct must have exactly one field error: struct must have exactly one field
--> $DIR/uri_display.rs:55:12 --> tests/ui-fail/uri_display.rs:55:12
| |
55 | struct Foo7(String, usize); 55 | struct Foo7(String, usize);
| ^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:52:10 --> tests/ui-fail/uri_display.rs:52:10
| |
52 | #[derive(UriDisplayPath)] 52 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error: struct must have exactly one field error: struct must have exactly one field
--> $DIR/uri_display.rs:61:1 --> tests/ui-fail/uri_display.rs:61:1
| |
61 | struct Foo8; 61 | struct Foo8;
| ^^^^^^^^^^^^ | ^^^^^^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:58:10 --> tests/ui-fail/uri_display.rs:58:10
| |
58 | #[derive(UriDisplayPath)] 58 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error: enums are not supported error: enums are not supported
--> $DIR/uri_display.rs:67:1 --> tests/ui-fail/uri_display.rs:67:1
| |
67 | enum Foo9 { } 67 | enum Foo9 { }
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:64:10 --> tests/ui-fail/uri_display.rs:64:10
| |
64 | #[derive(UriDisplayPath)] 64 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error: named structs are not supported error: named structs are not supported
--> $DIR/uri_display.rs:73:1 --> tests/ui-fail/uri_display.rs:73:1
| |
73 | / struct Foo10 { 73 | / struct Foo10 {
74 | | //~^ ERROR not supported 74 | | //~^ ERROR not supported
@ -125,362 +125,622 @@ error: named structs are not supported
| |_^ | |_^
| |
note: error occurred while deriving `UriDisplay` note: error occurred while deriving `UriDisplay`
--> $DIR/uri_display.rs:70:10 --> tests/ui-fail/uri_display.rs:70:10
| |
70 | #[derive(UriDisplayPath)] 70 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo1: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo1: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:5:10 --> tests/ui-fail/uri_display.rs:5:10
| |
5 | #[derive(UriDisplayQuery)] 5 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo1` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo1`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo1: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo1: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:5:10 --> tests/ui-fail/uri_display.rs:5:10
| |
5 | #[derive(UriDisplayQuery)] 5 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo1` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo1`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo1` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo1`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo1: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo1: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:5:10 --> tests/ui-fail/uri_display.rs:5:10
| |
5 | #[derive(UriDisplayQuery)] 5 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo1` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo1`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo1` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo1`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo2: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo2: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:12:10 --> tests/ui-fail/uri_display.rs:12:10
| |
12 | #[derive(UriDisplayQuery)] 12 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo2` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo2`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo2: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo2: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:12:10 --> tests/ui-fail/uri_display.rs:12:10
| |
12 | #[derive(UriDisplayQuery)] 12 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo2` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo2`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo2` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo2`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo2: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo2: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:12:10 --> tests/ui-fail/uri_display.rs:12:10
| |
12 | #[derive(UriDisplayQuery)] 12 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo2` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo2`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo2` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo2`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo3: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo3: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:19:10 --> tests/ui-fail/uri_display.rs:19:10
| |
19 | #[derive(UriDisplayQuery)] 19 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo3` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo3`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo3: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo3: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:19:10 --> tests/ui-fail/uri_display.rs:19:10
| |
19 | #[derive(UriDisplayQuery)] 19 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo3` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo3`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo3` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo3`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo3: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo3: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:19:10 --> tests/ui-fail/uri_display.rs:19:10
| |
19 | #[derive(UriDisplayQuery)] 19 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo3` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo3`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo3` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo3`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo4: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo4: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:26:10 --> tests/ui-fail/uri_display.rs:26:10
| |
26 | #[derive(UriDisplayQuery)] 26 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo4` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo4`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo4: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo4: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:26:10 --> tests/ui-fail/uri_display.rs:26:10
| |
26 | #[derive(UriDisplayQuery)] 26 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo4` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo4`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo4` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo4`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo4: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo4: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:26:10 --> tests/ui-fail/uri_display.rs:26:10
| |
26 | #[derive(UriDisplayQuery)] 26 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo4` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo4`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo4` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo4`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo5: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo5: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:35:10 --> tests/ui-fail/uri_display.rs:35:10
| |
35 | #[derive(UriDisplayQuery)] 35 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo5` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo5`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo5: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo5: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:35:10 --> tests/ui-fail/uri_display.rs:35:10
| |
35 | #[derive(UriDisplayQuery)] 35 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo5` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo5`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo5` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo5`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo5: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo5: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:35:10 --> tests/ui-fail/uri_display.rs:35:10
| |
35 | #[derive(UriDisplayQuery)] 35 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo5` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo5`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo5` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo5`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo6: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo6: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:42:10 --> tests/ui-fail/uri_display.rs:42:10
| |
42 | #[derive(UriDisplayQuery)] 42 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo6` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo6`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo6: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo6: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:42:10 --> tests/ui-fail/uri_display.rs:42:10
| |
42 | #[derive(UriDisplayQuery)] 42 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo6` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo6`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo6` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r Foo6`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo6: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `Foo6: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display.rs:42:10 --> tests/ui-fail/uri_display.rs:42:10
| |
42 | #[derive(UriDisplayQuery)] 42 | #[derive(UriDisplayQuery)]
| ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo6` | ^^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `Foo6`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo6`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&'__r mut Foo6`
= note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo7: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo7: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:52:10 --> tests/ui-fail/uri_display.rs:52:10
| |
52 | #[derive(UriDisplayPath)] 52 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo7` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo7`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo7: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo7: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:52:10 --> tests/ui-fail/uri_display.rs:52:10
| |
52 | #[derive(UriDisplayPath)] 52 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo7` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo7`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo7` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo7`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo8: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo8: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:58:10 --> tests/ui-fail/uri_display.rs:58:10
| |
58 | #[derive(UriDisplayPath)] 58 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo8` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo8`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo8: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo8: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:58:10 --> tests/ui-fail/uri_display.rs:58:10
| |
58 | #[derive(UriDisplayPath)] 58 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo8` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo8`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo8` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo8`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo9: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo9: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:64:10 --> tests/ui-fail/uri_display.rs:64:10
| |
64 | #[derive(UriDisplayPath)] 64 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo9` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo9`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo9: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo9: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:64:10 --> tests/ui-fail/uri_display.rs:64:10
| |
64 | #[derive(UriDisplayPath)] 64 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo9` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo9`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo9` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo9`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo10: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo10: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:70:10 --> tests/ui-fail/uri_display.rs:70:10
| |
70 | #[derive(UriDisplayPath)] 70 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo10` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo10`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Cow<'a, str> as UriDisplay<P>>
<IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
| |
| type Target: UriDisplay<P>; | type Target: UriDisplay<P>;
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` | ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
|
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Foo10: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `Foo10: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display.rs:70:10 --> tests/ui-fail/uri_display.rs:70:10
| |
70 | #[derive(UriDisplayPath)] 70 | #[derive(UriDisplayPath)]
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo10` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `Foo10`
| |
::: $WORKSPACE/core/http/src/uri/from_uri_param.rs = help: the following other types implement trait `UriDisplay<P>`:
| <&'a T as UriDisplay<P>>
| type Target: UriDisplay<P>; <&'a mut T as UriDisplay<P>>
| ------------- required by this bound in `rocket::http::uri::FromUriParam::Target` <Cow<'a, str> as UriDisplay<P>>
| <IpAddr as UriDisplay<P>>
<Ipv4Addr as UriDisplay<P>>
<Ipv6Addr as UriDisplay<P>>
<Option<T> as UriDisplay<rocket::http::uri::Query>>
<PathBuf as UriDisplay<rocket::http::uri::Path>>
and 20 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo10` = note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&'__r Foo10`
note: required by a bound in `rocket::http::uri::FromUriParam::Target`
--> $WORKSPACE/core/http/src/uri/from_uri_param.rs
|
| type Target: UriDisplay<P>;
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::FromUriParam::Target`
= note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `UriDisplayPath` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@ -1,61 +1,166 @@
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display_type_errors.rs:6:13 --> tests/ui-fail/uri_display_type_errors.rs:6:13
| |
6 | struct Bar1(BadType); 6 | struct Bar1(BadType);
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType` | ^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
| |
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType` = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Bar1 as UriDisplay<rocket::http::uri::Query>>
<Bar2 as UriDisplay<rocket::http::uri::Query>>
<Bar3 as UriDisplay<rocket::http::uri::Query>>
<Bar4 as UriDisplay<rocket::http::uri::Query>>
<Bar5 as UriDisplay<rocket::http::uri::Query>>
<Bar6 as UriDisplay<rocket::http::uri::Query>>
and 27 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
note: required by a bound in `rocket::http::uri::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::Formatter::<'i, P>::write_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display_type_errors.rs:11:5 --> tests/ui-fail/uri_display_type_errors.rs:11:5
| |
11 | field: BadType, 11 | field: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
| |
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType` = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Bar1 as UriDisplay<rocket::http::uri::Query>>
<Bar2 as UriDisplay<rocket::http::uri::Query>>
<Bar3 as UriDisplay<rocket::http::uri::Query>>
<Bar4 as UriDisplay<rocket::http::uri::Query>>
<Bar5 as UriDisplay<rocket::http::uri::Query>>
<Bar6 as UriDisplay<rocket::http::uri::Query>>
and 27 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
note: required by a bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display_type_errors.rs:18:5 --> tests/ui-fail/uri_display_type_errors.rs:18:5
| |
18 | bad: BadType, 18 | bad: BadType,
| ^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType` | ^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
| |
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType` = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Bar1 as UriDisplay<rocket::http::uri::Query>>
<Bar2 as UriDisplay<rocket::http::uri::Query>>
<Bar3 as UriDisplay<rocket::http::uri::Query>>
<Bar4 as UriDisplay<rocket::http::uri::Query>>
<Bar5 as UriDisplay<rocket::http::uri::Query>>
<Bar6 as UriDisplay<rocket::http::uri::Query>>
and 27 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
note: required by a bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display_type_errors.rs:24:11 --> tests/ui-fail/uri_display_type_errors.rs:24:11
| |
24 | Inner(BadType), 24 | Inner(BadType),
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType` | ^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
| |
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType` = help: the following other types implement trait `UriDisplay<P>`:
= note: 1 redundant requirements hidden <&'a T as UriDisplay<P>>
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType` <&'a mut T as UriDisplay<P>>
<Bar1 as UriDisplay<rocket::http::uri::Query>>
<Bar2 as UriDisplay<rocket::http::uri::Query>>
<Bar3 as UriDisplay<rocket::http::uri::Query>>
<Bar4 as UriDisplay<rocket::http::uri::Query>>
<Bar5 as UriDisplay<rocket::http::uri::Query>>
<Bar6 as UriDisplay<rocket::http::uri::Query>>
and 27 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
= note: 1 redundant requirement hidden
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType`
note: required by a bound in `rocket::http::uri::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::Formatter::<'i, P>::write_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display_type_errors.rs:31:9 --> tests/ui-fail/uri_display_type_errors.rs:31:9
| |
31 | field: BadType, 31 | field: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
| |
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType` = help: the following other types implement trait `UriDisplay<P>`:
= note: 1 redundant requirements hidden <&'a T as UriDisplay<P>>
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType` <&'a mut T as UriDisplay<P>>
<Bar1 as UriDisplay<rocket::http::uri::Query>>
<Bar2 as UriDisplay<rocket::http::uri::Query>>
<Bar3 as UriDisplay<rocket::http::uri::Query>>
<Bar4 as UriDisplay<rocket::http::uri::Query>>
<Bar5 as UriDisplay<rocket::http::uri::Query>>
<Bar6 as UriDisplay<rocket::http::uri::Query>>
and 27 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
= note: 1 redundant requirement hidden
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType`
note: required by a bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Query>` is not satisfied
--> $DIR/uri_display_type_errors.rs:40:9 --> tests/ui-fail/uri_display_type_errors.rs:40:9
| |
40 | other: BadType, 40 | other: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType` | ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::Query>` is not implemented for `BadType`
| |
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType` = help: the following other types implement trait `UriDisplay<P>`:
= note: 1 redundant requirements hidden <&'a T as UriDisplay<P>>
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType` <&'a mut T as UriDisplay<P>>
<Bar1 as UriDisplay<rocket::http::uri::Query>>
<Bar2 as UriDisplay<rocket::http::uri::Query>>
<Bar3 as UriDisplay<rocket::http::uri::Query>>
<Bar4 as UriDisplay<rocket::http::uri::Query>>
<Bar5 as UriDisplay<rocket::http::uri::Query>>
<Bar6 as UriDisplay<rocket::http::uri::Query>>
and 27 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&BadType`
= note: 1 redundant requirement hidden
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Query>` for `&&BadType`
note: required by a bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::Formatter::<'i, rocket::http::uri::Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Path>` is not satisfied error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::Path>` is not satisfied
--> $DIR/uri_display_type_errors.rs:46:12 --> tests/ui-fail/uri_display_type_errors.rs:46:12
| |
46 | struct Baz(BadType); 46 | struct Baz(BadType);
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `BadType` | ^^^^^^^ the trait `UriDisplay<rocket::http::uri::Path>` is not implemented for `BadType`
| |
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&BadType` = help: the following other types implement trait `UriDisplay<P>`:
<&'a T as UriDisplay<P>>
<&'a mut T as UriDisplay<P>>
<Bar1 as UriDisplay<rocket::http::uri::Query>>
<Bar2 as UriDisplay<rocket::http::uri::Query>>
<Bar3 as UriDisplay<rocket::http::uri::Query>>
<Bar4 as UriDisplay<rocket::http::uri::Query>>
<Bar5 as UriDisplay<rocket::http::uri::Query>>
<Bar6 as UriDisplay<rocket::http::uri::Query>>
and 27 others
= note: required because of the requirements on the impl of `UriDisplay<rocket::http::uri::Path>` for `&BadType`
note: required by a bound in `rocket::http::uri::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::Formatter::<'i, P>::write_value`