@@ -31,7 +31,9 @@ LL | | }
3131 | |_- this function returns a `Result`
3232 |
3333 = help: the trait `FromResidual<Option<Infallible>>` is not implemented for `Result<u64, String>`
34- = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
34+ = help: the following other types implement trait `FromResidual<R>`:
35+ <Result<T, F> as FromResidual<Result<Infallible, E>>>
36+ <Result<T, F> as FromResidual<Yeet<E>>>
3537
3638error[E0277]: the `?` operator can only be used on `Result`s in a function that returns `Result`
3739 --> $DIR/bad-interconversion.rs:17:31
@@ -44,7 +46,9 @@ LL | | }
4446 | |_- this function returns a `Result`
4547 |
4648 = help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Result<u64, String>`
47- = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
49+ = help: the following other types implement trait `FromResidual<R>`:
50+ <Result<T, F> as FromResidual<Result<Infallible, E>>>
51+ <Result<T, F> as FromResidual<Yeet<E>>>
4852
4953error[E0277]: the `?` operator can only be used on `Option`s, not `Result`s, in a function that returns `Option`
5054 --> $DIR/bad-interconversion.rs:22:22
@@ -57,7 +61,9 @@ LL | | }
5761 | |_- this function returns an `Option`
5862 |
5963 = help: the trait `FromResidual<Result<Infallible, &str>>` is not implemented for `Option<u16>`
60- = help: the trait `FromResidual` is implemented for `Option<T>`
64+ = help: the following other types implement trait `FromResidual<R>`:
65+ <Option<T> as FromResidual<Yeet<()>>>
66+ <Option<T> as FromResidual>
6167
6268error[E0277]: the `?` operator can only be used on `Option`s in a function that returns `Option`
6369 --> $DIR/bad-interconversion.rs:27:33
@@ -70,7 +76,9 @@ LL | | }
7076 | |_- this function returns an `Option`
7177 |
7278 = help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Option<u64>`
73- = help: the trait `FromResidual` is implemented for `Option<T>`
79+ = help: the following other types implement trait `FromResidual<R>`:
80+ <Option<T> as FromResidual<Yeet<()>>>
81+ <Option<T> as FromResidual>
7482
7583error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
7684 --> $DIR/bad-interconversion.rs:32:39
0 commit comments