Update UI tests for latest stable rustc.

This commit is contained in:
Sergio Benitez 2022-05-19 14:15:59 -07:00
parent 26b58846a7
commit d92b7249cb
2 changed files with 12 additions and 0 deletions

View File

@ -252,3 +252,9 @@ error[E0271]: type mismatch resolving `<std::string::String as FromParam<'_>>::E
|
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`
--> tests/ui-fail-stable/typed-uri-bad-type.rs:22:37
|
22 | fn optionals(id: Option<i32>, name: Result<String, &str>) { }
| ^^^^^^ expected `&str`, found enum `Infallible`

View File

@ -277,3 +277,9 @@ error[E0271]: type mismatch resolving `<std::string::String as FromParam<'_>>::E
|
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`
--> tests/ui-fail-stable/typed-uris-bad-params.rs:15:37
|
15 | fn optionals(id: Option<i32>, name: Result<String, &str>) { }
| ^^^^^^ expected `&str`, found enum `Infallible`