Better rustc_on_unimplemented, and UI test fixes

This commit is contained in:
Scott McMurray 2021-04-17 11:56:07 -07:00
parent 47b99485a3
commit 4a7ceea930
38 changed files with 564 additions and 266 deletions

View file

@ -7,7 +7,8 @@ LL | Err(5)?;
| ^ the trait `From<{integer}>` is not implemented for `()`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= note: required by `from`
= note: required because of the requirements on the impl of `FromResidual<Result<Infallible, {integer}>>` for `Result<i32, ()>`
= note: required by `from_residual`
error: aborting due to previous error