Update UI tests for latest stable.

This commit is contained in:
Jeb Rosen 2021-05-08 10:49:06 -07:00
parent 3a7559edce
commit 7478f0935d
4 changed files with 7 additions and 7 deletions

View File

@ -134,7 +134,7 @@ error[E0308]: mismatched types
| |
25 | | rocket::build()
26 | | }
| | ^- help: try adding a semicolon: `;`
| | ^- help: consider using a semicolon here: `;`
| |_____|
| expected `()`, found struct `Rocket`
|

View File

@ -399,11 +399,11 @@ error[E0308]: mismatched types
--> $DIR/from_form.rs:144:24
|
144 | #[field(validate = 123)]
| -------- ^^^ expected enum `std::result::Result`, found integer
| -------- ^^^ expected enum `Result`, found integer
| |
| expected due to this
|
= note: expected enum `std::result::Result<(), Errors<'_>>`
= note: expected enum `Result<(), Errors<'_>>`
found type `{integer}`
error[E0308]: mismatched types

View File

@ -53,4 +53,4 @@ error[E0277]: the trait bound `usize: Responder<'_, '_>` is not satisfied
28 | fn foo() -> usize { 0 }
| ^^^^^ the trait `Responder<'_, '_>` is not implemented for `usize`
|
= note: required by `route::handler::<impl rocket::outcome::Outcome<rocket::Response<'o>, Status, rocket::Data>>::from`
= note: required by `route::handler::<impl Outcome<rocket::Response<'o>, Status, rocket::Data>>::from`

View File

@ -55,11 +55,11 @@ error[E0277]: the trait bound `i32: FromUriParam<rocket::http::uri::Path, std::o
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, std::option::Option<{integer}>>` for `std::option::Option<i32>`
= note: required by `from_uri_param`
error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::uri::Path, std::result::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:56:43
|
56 | uri!(optionals: id = Some(10), name = Ok("bob".into()));
| ^^ the trait `FromUriParam<rocket::http::uri::Path, std::result::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:
<std::string::String as FromUriParam<P, &'a str>>
@ -67,7 +67,7 @@ error[E0277]: the trait bound `std::string::String: FromUriParam<rocket::http::u
<std::string::String as FromUriParam<P, &'x mut &'a str>>
<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, std::result::Result<_, _>>` for `std::result::Result<std::string::String, &str>`
= note: required because of the requirements on the impl of `FromUriParam<rocket::http::uri::Path, Result<_, _>>` for `Result<std::string::String, &str>`
= note: required by `from_uri_param`
error[E0277]: the trait bound `isize: FromUriParam<rocket::http::uri::Query, &str>` is not satisfied