Update UI tests for latest stable, nightly.

This commit is contained in:
Sergio Benitez 2023-01-30 16:05:44 -08:00
parent 0f1d141905
commit e468a98333
12 changed files with 476 additions and 613 deletions

View File

@ -1,15 +1,15 @@
error[E0277]: the trait bound `Unknown: Pool` is not satisfied
--> tests/ui-fail-nightly/database-types.rs:7:10
|
7 | struct A(Unknown);
| ^^^^^^^ the trait `Pool` is not implemented for `Unknown`
|
= help: the trait `Pool` is implemented for `deadpool::managed::Pool<M, C>`
--> tests/ui-fail-nightly/database-types.rs:7:10
|
7 | struct A(Unknown);
| ^^^^^^^ the trait `Pool` is not implemented for `Unknown`
|
= help: the trait `Pool` is implemented for `deadpool::managed::Pool<M, C>`
note: required by a bound in `rocket_db_pools::Database::Pool`
--> $WORKSPACE/contrib/db_pools/lib/src/database.rs
|
| type Pool: Pool;
| ^^^^ required by this bound in `rocket_db_pools::Database::Pool`
--> $WORKSPACE/contrib/db_pools/lib/src/database.rs
|
| type Pool: Pool;
| ^^^^ required by this bound in `Database::Pool`
error[E0277]: the trait bound `Vec<i32>: Pool` is not satisfied
--> tests/ui-fail-nightly/database-types.rs:11:10
@ -22,4 +22,4 @@ note: required by a bound in `rocket_db_pools::Database::Pool`
--> $WORKSPACE/contrib/db_pools/lib/src/database.rs
|
| type Pool: Pool;
| ^^^^ required by this bound in `rocket_db_pools::Database::Pool`
| ^^^^ required by this bound in `Database::Pool`

View File

@ -1,51 +1,51 @@
error[E0277]: the trait bound `Unknown: Poolable` is not satisfied
--> tests/ui-fail-nightly/database-types.rs:6:10
|
6 | struct A(Unknown);
| ^^^^^^^ the trait `Poolable` is not implemented for `Unknown`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
--> tests/ui-fail-nightly/database-types.rs:6:10
|
6 | struct A(Unknown);
| ^^^^^^^ the trait `Poolable` is not implemented for `Unknown`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
note: required by a bound in `rocket_sync_db_pools::Connection`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct Connection<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `rocket_sync_db_pools::Connection`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct Connection<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `Connection`
error[E0277]: the trait bound `Vec<i32>: Poolable` is not satisfied
--> tests/ui-fail-nightly/database-types.rs:9:10
|
9 | struct B(Vec<i32>);
| ^^^^^^^^ the trait `Poolable` is not implemented for `Vec<i32>`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
--> tests/ui-fail-nightly/database-types.rs:9:10
|
9 | struct B(Vec<i32>);
| ^^^^^^^^ the trait `Poolable` is not implemented for `Vec<i32>`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
note: required by a bound in `rocket_sync_db_pools::Connection`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct Connection<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `rocket_sync_db_pools::Connection`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct Connection<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `Connection`
error[E0277]: the trait bound `Unknown: Poolable` is not satisfied
--> tests/ui-fail-nightly/database-types.rs:6:10
|
6 | struct A(Unknown);
| ^^^^^^^ the trait `Poolable` is not implemented for `Unknown`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
--> tests/ui-fail-nightly/database-types.rs:6:10
|
6 | struct A(Unknown);
| ^^^^^^^ the trait `Poolable` is not implemented for `Unknown`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
note: required by a bound in `ConnectionPool`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct ConnectionPool<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `ConnectionPool`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct ConnectionPool<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `ConnectionPool`
error[E0277]: the trait bound `Vec<i32>: Poolable` is not satisfied
--> tests/ui-fail-nightly/database-types.rs:9:10
|
9 | struct B(Vec<i32>);
| ^^^^^^^^ the trait `Poolable` is not implemented for `Vec<i32>`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
--> tests/ui-fail-nightly/database-types.rs:9:10
|
9 | struct B(Vec<i32>);
| ^^^^^^^^ the trait `Poolable` is not implemented for `Vec<i32>`
|
= help: the trait `Poolable` is implemented for `SqliteConnection`
note: required by a bound in `ConnectionPool`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct ConnectionPool<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `ConnectionPool`
--> $WORKSPACE/contrib/sync_db_pools/lib/src/connection.rs
|
| pub struct ConnectionPool<K, C: Poolable> {
| ^^^^^^^^ required by this bound in `ConnectionPool`

View File

@ -117,7 +117,7 @@ error[E0308]: mismatched types
--> tests/ui-fail-nightly/async-entry.rs:35:9
|
35 | rocket::build()
| ^^^^^^^^^^^^^^^ expected struct `std::string::String`, found struct `Rocket`
| ^^^^^^^^^^^^^^^ expected struct `String`, found struct `Rocket`
|
= note: expected struct `std::string::String`
found struct `Rocket<Build>`
@ -126,7 +126,7 @@ error[E0308]: mismatched types
--> tests/ui-fail-nightly/async-entry.rs:44:9
|
44 | "hi".to_string()
| ^^^^^^^^^^^^^^^^ expected struct `Rocket`, found struct `std::string::String`
| ^^^^^^^^^^^^^^^^ expected struct `Rocket`, found struct `String`
|
= note: expected struct `Rocket<Build>`
found struct `std::string::String`
@ -147,18 +147,6 @@ error[E0308]: mismatched types
= note: expected unit type `()`
found struct `Rocket<Build>`
error[E0308]: mismatched types
--> tests/ui-fail-nightly/async-entry.rs:33:26
|
33 | async fn rocket() -> String {
| ^^^^^^
| |
| expected struct `Rocket`, found struct `std::string::String`
| expected due to this
|
= note: expected struct `Rocket<Build>`
found struct `std::string::String`
error[E0277]: `main` has invalid return type `Rocket<Build>`
--> tests/ui-fail-nightly/async-entry.rs:94:20
|

View File

@ -15,7 +15,7 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and 40 others
and $N others
error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied
--> tests/ui-fail-nightly/catch_type_errors.rs:11:30
@ -34,13 +34,13 @@ error[E0277]: the trait bound `bool: Responder<'_, '_>` is not satisfied
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and 40 others
and $N others
error[E0308]: mismatched types
--> tests/ui-fail-nightly/catch_type_errors.rs:16:17
|
16 | fn f3(_request: bool) -> usize {
| -- ^^^^ expected `bool`, found `&rocket::Request<'_>`
| -- ^^^^ expected `bool`, found `&Request<'_>`
| |
| arguments to this function are incorrect
|
@ -67,7 +67,7 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and 40 others
and $N others
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
--> tests/ui-fail-nightly/catch_type_errors.rs:21:12
@ -86,4 +86,4 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and 40 others
and $N others

View File

@ -449,7 +449,7 @@ error[E0308]: mismatched types
159 | #[field(validate = ext(rocket::http::ContentType::HTML))]
| --- arguments to this function are incorrect
160 | first: String,
| ^^^^^^ expected enum `TempFile`, found struct `std::string::String`
| ^^^^^^ expected enum `TempFile`, found struct `String`
|
= note: expected reference `&TempFile<'_>`
found reference `&std::string::String`
@ -465,7 +465,7 @@ error[E0308]: arguments to this function are incorrect
165 | #[field(validate = ext("hello"))]
| ^^^ ------- expected struct `ContentType`, found `&str`
166 | first: String,
| ------ expected enum `TempFile`, found struct `std::string::String`
| ------ expected enum `TempFile`, found struct `String`
|
= note: expected reference `&TempFile<'_>`
found reference `&std::string::String`
@ -481,9 +481,14 @@ error[E0308]: mismatched types
171 | #[field(default = 123)]
| ^^^- help: try using a conversion method: `.to_string()`
| |
| expected struct `std::string::String`, found integer
| expected struct `String`, found integer
| arguments to this enum variant are incorrect
|
help: the type constructed contains `{integer}` due to the type of the argument passed
--> tests/ui-fail-nightly/from_form.rs:171:23
|
171 | #[field(default = 123)]
| ^^^ this argument influences the type of `Some`
note: tuple variant defined here
--> $RUST/core/src/option.rs
|
@ -496,9 +501,16 @@ error[E0308]: mismatched types
203 | #[field(default_with = Some("hi"))]
| ---- ^^^^- help: try using a conversion method: `.to_string()`
| | |
| | expected struct `std::string::String`, found `&str`
| | expected struct `String`, found `&str`
| arguments to this enum variant are incorrect
|
help: the type constructed contains `&'static str` due to the type of the argument passed
--> tests/ui-fail-nightly/from_form.rs:203:28
|
203 | #[field(default_with = Some("hi"))]
| ^^^^^----^
| |
| this argument influences the type of `Some`
note: tuple variant defined here
--> $RUST/core/src/option.rs
|

View File

@ -13,30 +13,30 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and 44 others
and $N others
error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
--> tests/ui-fail-nightly/responder-types.rs:11:5
|
11 | other: u8,
| ^^^^^^^^^ the trait `From<u8>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
and 4 others
= note: required for `u8` to implement `Into<Header<'_>>`
--> tests/ui-fail-nightly/responder-types.rs:11:5
|
11 | other: u8,
| ^^^^^^^^^ the trait `From<u8>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
and $N others
= note: required for `u8` to implement `Into<Header<'_>>`
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`
--> $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 `Response::<'r>::set_header`
error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
--> tests/ui-fail-nightly/responder-types.rs:16:5
@ -53,72 +53,72 @@ error[E0277]: the trait bound `u8: Responder<'_, '_>` is not satisfied
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and 44 others
and $N others
error[E0277]: the trait bound `Header<'_>: From<u8>` is not satisfied
--> tests/ui-fail-nightly/responder-types.rs:17:5
|
17 | other: u8,
| ^^^^^^^^^ the trait `From<u8>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
and 4 others
= note: required for `u8` to implement `Into<Header<'_>>`
--> tests/ui-fail-nightly/responder-types.rs:17:5
|
17 | other: u8,
| ^^^^^^^^^ the trait `From<u8>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
and $N others
= note: required for `u8` to implement `Into<Header<'_>>`
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`
--> $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 `Response::<'r>::set_header`
error[E0277]: the trait bound `Header<'_>: From<std::string::String>` is not satisfied
--> tests/ui-fail-nightly/responder-types.rs:24:5
|
24 | then: String,
| ^^^^^^^^^^^^ the trait `From<std::string::String>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
and 4 others
= note: required for `std::string::String` to implement `Into<Header<'_>>`
--> tests/ui-fail-nightly/responder-types.rs:24:5
|
24 | then: String,
| ^^^^^^^^^^^^ the trait `From<std::string::String>` is not implemented for `Header<'_>`
|
= help: the following other types implement trait `From<T>`:
<Header<'static> as From<&Cookie<'_>>>
<Header<'static> as From<&ExpectCt>>
<Header<'static> as From<&Frame>>
<Header<'static> as From<&Hsts>>
<Header<'static> as From<&NoSniff>>
<Header<'static> as From<&Permission>>
<Header<'static> as From<&Prefetch>>
<Header<'static> as From<&Referrer>>
and $N others
= note: required for `std::string::String` to implement `Into<Header<'_>>`
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`
--> $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 `Response::<'r>::set_header`
error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
--> tests/ui-fail-nightly/responder-types.rs:28:13
|
28 | fn foo() -> usize { 0 }
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
= help: the following other types implement trait `Responder<'r, 'o>`:
<&'o [u8] as Responder<'r, 'o>>
<&'o str as Responder<'r, 'o>>
<() as Responder<'r, 'static>>
<(ContentType, R) as Responder<'r, 'o>>
<(Status, R) as Responder<'r, 'o>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and 44 others
--> tests/ui-fail-nightly/responder-types.rs:28:13
|
28 | fn foo() -> usize { 0 }
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
= help: the following other types implement trait `Responder<'r, 'o>`:
<&'o [u8] as Responder<'r, 'o>>
<&'o str as Responder<'r, 'o>>
<() as Responder<'r, 'static>>
<(ContentType, R) as Responder<'r, 'o>>
<(Status, R) as Responder<'r, 'o>>
<Accepted<R> as Responder<'r, 'o>>
<Arc<[u8]> as Responder<'r, 'static>>
<Arc<str> as Responder<'r, 'static>>
and $N others
note: required by a bound in `route::handler::<impl Outcome<rocket::Response<'o>, Status, rocket::Data<'o>>>::from`
--> $WORKSPACE/core/lib/src/route/handler.rs
|
| pub fn from<R: Responder<'r, 'o>>(req: &'r Request<'_>, responder: R) -> Outcome<'r> {
| ^^^^^^^^^^^^^^^^^ required by this bound in `route::handler::<impl Outcome<rocket::Response<'o>, Status, rocket::Data<'o>>>::from`
--> $WORKSPACE/core/lib/src/route/handler.rs
|
| pub fn from<R: Responder<'r, 'o>>(req: &'r Request<'_>, responder: R) -> Outcome<'r> {
| ^^^^^^^^^^^^^^^^^ required by this bound in `route::handler::<impl Outcome<Response<'o>, Status, Data<'o>>>::from`

View File

@ -1,10 +1,10 @@
error[E0271]: type mismatch resolving `<std::string::String as FromParam<'_>>::Error == &str`
error[E0271]: type mismatch resolving `<String as FromParam<'_>>::Error == &str`
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:22:37
|
22 | fn optionals(id: Option<i32>, name: Result<String, &str>) { }
| ^^^^^^^^^^^^^^^^^^^^ expected enum `Infallible`, found `&str`
error[E0271]: type mismatch resolving `<std::string::String as FromParam<'_>>::Error == &str`
error[E0271]: type mismatch resolving `<String as FromParam<'_>>::Error == &str`
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:22:37
|
22 | fn optionals(id: Option<i32>, name: Result<String, &str>) { }
@ -17,15 +17,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:47:17
@ -34,15 +28,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, i64>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:49:22
@ -51,15 +39,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, i64>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Path, _>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:51:30
@ -76,7 +58,7 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Path, _>`
<&'a std::path::Path as FromUriParam<rocket::http::uri::fmt::Path, PathBuf>>
<&'a str as FromUriParam<P, &'a str>>
<&'a str as FromUriParam<P, &'x &'a str>>
and 155 others
and $N others
error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:56:25
@ -85,15 +67,9 @@ error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::fmt::Path, s
| ^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not implemented for `i32`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<i32 as FromUriParam<P, &'x i32>>
<i32 as FromUriParam<P, &'x mut i32>>
<i32 as FromUriParam<P, i32>>
= note: required for `std::option::Option<i32>` to implement `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>`
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not satisfied
@ -103,15 +79,12 @@ error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::u
| ^^^^^^^^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not implemented for `std::string::String`
|
= 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, &'x &'a str>>
and 4 others
<std::string::String as FromUriParam<P, &'x mut &'a str>>
<std::string::String as FromUriParam<P, &'x mut std::string::String>>
<std::string::String as FromUriParam<P, &'x std::string::String>>
<std::string::String as FromUriParam<P, std::string::String>>
= note: required for `Result<std::string::String, &str>` to implement `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>`
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
@ -121,15 +94,9 @@ error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<isize as FromUriParam<P, &'x isize>>
<isize as FromUriParam<P, &'x mut isize>>
<isize as FromUriParam<P, isize>>
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:60:24
@ -138,15 +105,9 @@ error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<isize as FromUriParam<P, &'x isize>>
<isize as FromUriParam<P, &'x mut isize>>
<isize as FromUriParam<P, isize>>
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:62:23
@ -163,7 +124,7 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>
<&'a std::path::Path as FromUriParam<rocket::http::uri::fmt::Path, PathBuf>>
<&'a str as FromUriParam<P, &'a str>>
<&'a str as FromUriParam<P, &'x &'a str>>
and 155 others
and $N others
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:64:25
@ -180,37 +141,37 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>
<&'a std::path::Path as FromUriParam<rocket::http::uri::fmt::Path, PathBuf>>
<&'a str as FromUriParam<P, &'a str>>
<&'a str as FromUriParam<P, &'x &'a str>>
and 155 others
and $N others
error[E0277]: the trait bound `S: Ignorable<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:66:25
|
66 | uri!(other_q(rest = _, id = 100));
| ^ the trait `Ignorable<rocket::http::uri::fmt::Query>` is not implemented for `S`
|
= help: the following other types implement trait `Ignorable<P>`:
Result<T, E>
std::option::Option<T>
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:66:25
|
66 | uri!(other_q(rest = _, id = 100));
| ^ the trait `Ignorable<rocket::http::uri::fmt::Query>` is not implemented for `S`
|
= help: the following other types implement trait `Ignorable<P>`:
Result<T, E>
std::option::Option<T>
note: required by a bound in `assert_ignorable`
--> $WORKSPACE/core/http/src/uri/fmt/uri_display.rs
|
| pub fn assert_ignorable<P: Part, T: Ignorable<P>>() { }
| ^^^^^^^^^^^^ required by this bound in `assert_ignorable`
--> $WORKSPACE/core/http/src/uri/fmt/uri_display.rs
|
| pub fn assert_ignorable<P: Part, T: Ignorable<P>>() { }
| ^^^^^^^^^^^^ required by this bound in `assert_ignorable`
error[E0277]: the trait bound `usize: Ignorable<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:68:33
|
68 | uri!(other_q(rest = S, id = _));
| ^ the trait `Ignorable<rocket::http::uri::fmt::Query>` is not implemented for `usize`
|
= help: the following other types implement trait `Ignorable<P>`:
Result<T, E>
std::option::Option<T>
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:68:33
|
68 | uri!(other_q(rest = S, id = _));
| ^ the trait `Ignorable<rocket::http::uri::fmt::Query>` is not implemented for `usize`
|
= help: the following other types implement trait `Ignorable<P>`:
Result<T, E>
std::option::Option<T>
note: required by a bound in `assert_ignorable`
--> $WORKSPACE/core/http/src/uri/fmt/uri_display.rs
|
| pub fn assert_ignorable<P: Part, T: Ignorable<P>>() { }
| ^^^^^^^^^^^^ required by this bound in `assert_ignorable`
--> $WORKSPACE/core/http/src/uri/fmt/uri_display.rs
|
| pub fn assert_ignorable<P: Part, T: Ignorable<P>>() { }
| ^^^^^^^^^^^^ required by this bound in `assert_ignorable`
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:68:25
@ -227,7 +188,7 @@ error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>
<&'a std::path::Path as FromUriParam<rocket::http::uri::fmt::Path, PathBuf>>
<&'a str as FromUriParam<P, &'a str>>
<&'a str as FromUriParam<P, &'x &'a str>>
and 155 others
and $N others
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:77:40
@ -236,33 +197,27 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefix` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:77:15
|
77 | uri!(uri!("?foo#bar"), simple(id = "hi"));
| -----^^^^^^^^^^-
| | |
| | the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Reference<'_>`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRoutePrefix`:
rocket::http::uri::Absolute<'a>
rocket::http::uri::Origin<'a>
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:77:15
|
77 | uri!(uri!("?foo#bar"), simple(id = "hi"));
| -----^^^^^^^^^^-
| | |
| | the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Reference<'_>`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRoutePrefix`:
rocket::http::uri::Absolute<'a>
rocket::http::uri::Origin<'a>
note: required by a bound in `RouteUriBuilder::with_prefix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn with_prefix<P: ValidRoutePrefix>(self, p: P) -> PrefixedRouteUri<P::Output> {
| ^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_prefix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn with_prefix<P: ValidRoutePrefix>(self, p: P) -> PrefixedRouteUri<P::Output> {
| ^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_prefix`
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:78:33
@ -271,33 +226,27 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:78:15
|
78 | uri!(uri!("*"), simple(id = "hi"));
| -----^^^-
| | |
| | the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Asterisk`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRoutePrefix`:
rocket::http::uri::Absolute<'a>
rocket::http::uri::Origin<'a>
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:78:15
|
78 | uri!(uri!("*"), simple(id = "hi"));
| -----^^^-
| | |
| | the trait `ValidRoutePrefix` is not implemented for `rocket::http::uri::Asterisk`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRoutePrefix`:
rocket::http::uri::Absolute<'a>
rocket::http::uri::Origin<'a>
note: required by a bound in `RouteUriBuilder::with_prefix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn with_prefix<P: ValidRoutePrefix>(self, p: P) -> PrefixedRouteUri<P::Output> {
| ^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_prefix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn with_prefix<P: ValidRoutePrefix>(self, p: P) -> PrefixedRouteUri<P::Output> {
| ^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_prefix`
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:81:25
@ -306,35 +255,29 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:81:37
|
81 | uri!(_, simple(id = "hi"), uri!("*"));
| -----^^^-
| | |
| | the trait `ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not implemented for `rocket::http::uri::Asterisk`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRouteSuffix<T>`:
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:81:37
|
81 | uri!(_, simple(id = "hi"), uri!("*"));
| -----^^^-
| | |
| | the trait `ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not implemented for `rocket::http::uri::Asterisk`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRouteSuffix<T>`:
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
note: required by a bound in `RouteUriBuilder::with_suffix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| where S: ValidRouteSuffix<Origin<'static>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_suffix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| where S: ValidRouteSuffix<Origin<'static>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_suffix`
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:82:25
@ -343,32 +286,26 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:82:37
|
82 | uri!(_, simple(id = "hi"), uri!("/foo/bar"));
| -----^^^^^^^^^^-
| | |
| | the trait `ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not implemented for `rocket::http::uri::Origin<'_>`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRouteSuffix<T>`:
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
--> tests/ui-fail-nightly/typed-uri-bad-type.rs:82:37
|
82 | uri!(_, simple(id = "hi"), uri!("/foo/bar"));
| -----^^^^^^^^^^-
| | |
| | the trait `ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not implemented for `rocket::http::uri::Origin<'_>`
| required by a bound introduced by this call
|
= help: the following other types implement trait `ValidRouteSuffix<T>`:
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Absolute<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Absolute<'a>>>
<rocket::http::uri::Reference<'a> as ValidRouteSuffix<rocket::http::uri::Origin<'a>>>
note: required by a bound in `RouteUriBuilder::with_suffix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| where S: ValidRouteSuffix<Origin<'static>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_suffix`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| where S: ValidRouteSuffix<Origin<'static>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RouteUriBuilder::with_suffix`

View File

@ -281,13 +281,13 @@ error: route expects 1 parameter but 0 were supplied
|
= note: route `has_one` has uri "/<id>"
error[E0271]: type mismatch resolving `<std::string::String as FromParam<'_>>::Error == &str`
error[E0271]: type mismatch resolving `<String as FromParam<'_>>::Error == &str`
--> tests/ui-fail-nightly/typed-uris-bad-params.rs:15:37
|
15 | fn optionals(id: Option<i32>, name: Result<String, &str>) { }
| ^^^^^^^^^^^^^^^^^^^^ expected enum `Infallible`, found `&str`
error[E0271]: type mismatch resolving `<std::string::String as FromParam<'_>>::Error == &str`
error[E0271]: type mismatch resolving `<String as FromParam<'_>>::Error == &str`
--> tests/ui-fail-nightly/typed-uris-bad-params.rs:15:37
|
15 | fn optionals(id: Option<i32>, name: Result<String, &str>) { }

View File

@ -1,166 +1,166 @@
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/uri_display_type_errors.rs:6:13
|
6 | struct Bar1(BadType);
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and 48 others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
--> tests/ui-fail-nightly/uri_display_type_errors.rs:6:13
|
6 | struct Bar1(BadType);
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and $N others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
note: required by a bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `Formatter::<'i, P>::write_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/uri_display_type_errors.rs:10:5
|
10 | field: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and 48 others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
--> tests/ui-fail-nightly/uri_display_type_errors.rs:10:5
|
10 | field: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and $N others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/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::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `Formatter::<'_, Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/uri_display_type_errors.rs:16:5
|
16 | bad: BadType,
| ^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and 48 others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
--> tests/ui-fail-nightly/uri_display_type_errors.rs:16:5
|
16 | bad: BadType,
| ^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and $N others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/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::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `Formatter::<'_, Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/uri_display_type_errors.rs:21:11
|
21 | Inner(BadType),
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and 48 others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
= note: 1 redundant requirement hidden
= note: required for `&&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
--> tests/ui-fail-nightly/uri_display_type_errors.rs:21:11
|
21 | Inner(BadType),
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and $N others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
= note: 1 redundant requirement hidden
= note: required for `&&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
note: required by a bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `Formatter::<'i, P>::write_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/uri_display_type_errors.rs:27:9
|
27 | field: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and 48 others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
= note: 1 redundant requirement hidden
= note: required for `&&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
--> tests/ui-fail-nightly/uri_display_type_errors.rs:27:9
|
27 | field: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and $N others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
= note: 1 redundant requirement hidden
= note: required for `&&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/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::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `Formatter::<'_, Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::fmt::Query>` is not satisfied
--> tests/ui-fail-nightly/uri_display_type_errors.rs:35:9
|
35 | other: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and 48 others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
= note: 1 redundant requirement hidden
= note: required for `&&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
--> tests/ui-fail-nightly/uri_display_type_errors.rs:35:9
|
35 | other: BadType,
| ^^^^^^^^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Query>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and $N others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
= note: 1 redundant requirement hidden
= note: required for `&&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Query>`
note: required by a bound in `rocket::http::uri::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/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::fmt::Formatter::<'_, rocket::http::uri::fmt::Query>::write_named_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_named_value<T: UriDisplay<Query>>(&mut self, name: &str, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^^^^^ required by this bound in `Formatter::<'_, Query>::write_named_value`
error[E0277]: the trait bound `BadType: UriDisplay<rocket::http::uri::fmt::Path>` is not satisfied
--> tests/ui-fail-nightly/uri_display_type_errors.rs:40:12
|
40 | struct Baz(BadType);
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Path>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and 48 others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Path>`
--> tests/ui-fail-nightly/uri_display_type_errors.rs:40:12
|
40 | struct Baz(BadType);
| ^^^^^^^ the trait `UriDisplay<rocket::http::uri::fmt::Path>` is not implemented for `BadType`
|
= help: the following other types implement trait `UriDisplay<P>`:
<&T as UriDisplay<P>>
<&mut T as UriDisplay<P>>
<BTreeMap<K, V> as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar1 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar2 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar3 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar4 as UriDisplay<rocket::http::uri::fmt::Query>>
<Bar5 as UriDisplay<rocket::http::uri::fmt::Query>>
and $N others
= note: required for `&BadType` to implement `UriDisplay<rocket::http::uri::fmt::Path>`
note: required by a bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `rocket::http::uri::fmt::Formatter::<'i, P>::write_value`
--> $WORKSPACE/core/http/src/uri/fmt/formatter.rs
|
| pub fn write_value<T: UriDisplay<P>>(&mut self, value: T) -> fmt::Result {
| ^^^^^^^^^^^^^ required by this bound in `Formatter::<'i, P>::write_value`

View File

@ -460,12 +460,6 @@ error: [note] error occurred while deriving `FromForm`
|
= note: this error originates in the derive macro `FromForm` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0425]: cannot find function `unknown` in this scope
--> tests/ui-fail-stable/from_form.rs:153:24
|
153 | #[field(validate = unknown())]
| ^^^^^^^ not found in this scope
error[E0308]: mismatched types
--> tests/ui-fail-stable/from_form.rs:147:24
|
@ -475,6 +469,12 @@ error[E0308]: mismatched types
= note: expected enum `Result<(), Errors<'_>>`
found type `{integer}`
error[E0425]: cannot find function `unknown` in this scope
--> tests/ui-fail-stable/from_form.rs:153:24
|
153 | #[field(validate = unknown())]
| ^^^^^^^ not found in this scope
error[E0308]: mismatched types
--> tests/ui-fail-stable/from_form.rs:160:12
|
@ -511,7 +511,7 @@ error[E0308]: mismatched types
--> tests/ui-fail-stable/from_form.rs:171:23
|
171 | #[field(default = 123)]
| ^^^
| ^^^- help: try using a conversion method: `.to_string()`
| |
| expected struct `std::string::String`, found integer
| arguments to this enum variant are incorrect
@ -521,19 +521,14 @@ note: tuple variant defined here
|
| Some(#[stable(feature = "rust1", since = "1.0.0")] T),
| ^^^^
help: try using a conversion method
|
171 | #[field(default = 123.to_string())]
| ++++++++++++
171 | #[field(default = 123.to_string())]
| ++++++++++++
error[E0308]: mismatched types
--> tests/ui-fail-stable/from_form.rs:203:33
|
203 | #[field(default_with = Some("hi"))]
| ---- ^^^^ expected struct `std::string::String`, found `&str`
| |
| ---- ^^^^- help: try using a conversion method: `.to_string()`
| | |
| | expected struct `std::string::String`, found `&str`
| arguments to this enum variant are incorrect
|
note: tuple variant defined here
@ -541,12 +536,6 @@ note: tuple variant defined here
|
| Some(#[stable(feature = "rust1", since = "1.0.0")] T),
| ^^^^
help: try using a conversion method
|
203 | #[field(default_with = Some("hi".to_string()))]
| ++++++++++++
203 | #[field(default_with = Some("hi".to_string()))]
| ++++++++++++
error[E0277]: the trait bound `bool: From<&str>` is not satisfied
--> tests/ui-fail-stable/from_form.rs:209:23

View File

@ -62,7 +62,7 @@ error: expected key/value `key = value`
--> tests/ui-fail-stable/route-attribute-general-syntax.rs:33:12
|
33 | #[get("/", ...)]
| ^^^
| ^
error: handler arguments must be named
--- help: to name an ignored handler argument, use `_name`

View File

@ -17,15 +17,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, &str>` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:47:17
@ -34,15 +28,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path, i64>` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:49:22
@ -51,15 +39,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^^^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, i64>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Path, _>` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:51:30
@ -85,15 +67,9 @@ error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::fmt::Path, s
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>` is not implemented for `i32`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<i32 as FromUriParam<P, &'x i32>>
<i32 as FromUriParam<P, &'x mut i32>>
<i32 as FromUriParam<P, i32>>
= note: required for `std::option::Option<i32>` to implement `FromUriParam<rocket::http::uri::fmt::Path, std::option::Option<{integer}>>`
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not satisfied
@ -103,15 +79,12 @@ error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::u
| ^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>` is not implemented for `std::string::String`
|
= 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, &'x &'a str>>
and $N others
<std::string::String as FromUriParam<P, &'x mut &'a str>>
<std::string::String as FromUriParam<P, &'x mut std::string::String>>
<std::string::String as FromUriParam<P, &'x std::string::String>>
<std::string::String as FromUriParam<P, std::string::String>>
= note: required for `Result<std::string::String, &str>` to implement `FromUriParam<rocket::http::uri::fmt::Path, Result<_, _>>`
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
@ -121,15 +94,9 @@ error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<isize as FromUriParam<P, &'x isize>>
<isize as FromUriParam<P, &'x mut isize>>
<isize as FromUriParam<P, isize>>
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query, &str>` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:60:24
@ -138,15 +105,9 @@ error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::fmt::Query
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Query, &str>` is not implemented for `isize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<isize as FromUriParam<P, &'x isize>>
<isize as FromUriParam<P, &'x mut isize>>
<isize as FromUriParam<P, isize>>
error[E0277]: the trait bound `S: FromUriParam<rocket::http::uri::fmt::Query, _>` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:62:23
@ -236,15 +197,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Reference<'_>: ValidRoutePrefix` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:77:15
@ -270,15 +225,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRoutePrefix` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:78:15
@ -304,15 +253,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Asterisk: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:81:37
@ -340,15 +283,9 @@ error[E0277]: the trait bound `usize: FromUriParam<rocket::http::uri::fmt::Path,
| ^^^^ the trait `FromUriParam<rocket::http::uri::fmt::Path, &str>` is not implemented for `usize`
|
= help: the following other types implement trait `FromUriParam<P, T>`:
<f32 as FromUriParam<P, &'x f32>>
<f32 as FromUriParam<P, &'x mut f32>>
<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 $N others
<usize as FromUriParam<P, &'x mut usize>>
<usize as FromUriParam<P, &'x usize>>
<usize as FromUriParam<P, usize>>
error[E0277]: the trait bound `rocket::http::uri::Origin<'_>: ValidRouteSuffix<rocket::http::uri::Origin<'static>>` is not satisfied
--> tests/ui-fail-stable/typed-uri-bad-type.rs:82:37