@@ -23,9 +23,7 @@ LL | Some(3)?;
2323 | ^ use `.ok_or(...)?` to provide an error compatible with `Result<u64, String>`
2424 |
2525 = help: the trait `FromResidual<Option<Infallible>>` is not implemented for `Result<u64, String>`
26- = help: the following other types implement trait `FromResidual<R>`:
27- `Result<T, F>` implements `FromResidual<Result<Infallible, E>>`
28- `Result<T, F>` implements `FromResidual<Yeet<E>>`
26+ = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
2927
3028error[E0277]: the `?` operator can only be used on `Result`s in a function that returns `Result`
3129 --> $DIR/bad-interconversion.rs:17:31
@@ -36,9 +34,7 @@ LL | Ok(ControlFlow::Break(123)?)
3634 | ^ this `?` produces `ControlFlow<{integer}, Infallible>`, which is incompatible with `Result<u64, String>`
3735 |
3836 = help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Result<u64, String>`
39- = help: the following other types implement trait `FromResidual<R>`:
40- `Result<T, F>` implements `FromResidual<Result<Infallible, E>>`
41- `Result<T, F>` implements `FromResidual<Yeet<E>>`
37+ = help: the trait `FromResidual<Result<Infallible, E>>` is implemented for `Result<T, F>`
4238
4339error[E0277]: the `?` operator can only be used on `Option`s, not `Result`s, in a function that returns `Option`
4440 --> $DIR/bad-interconversion.rs:22:22
@@ -49,9 +45,7 @@ LL | Some(Err("hello")?)
4945 | ^ use `.ok()?` if you want to discard the `Result<Infallible, &str>` error information
5046 |
5147 = help: the trait `FromResidual<Result<Infallible, &str>>` is not implemented for `Option<u16>`
52- = help: the following other types implement trait `FromResidual<R>`:
53- `Option<T>` implements `FromResidual<Yeet<()>>`
54- `Option<T>` implements `FromResidual`
48+ = help: the trait `FromResidual` is implemented for `Option<T>`
5549
5650error[E0277]: the `?` operator can only be used on `Option`s in a function that returns `Option`
5751 --> $DIR/bad-interconversion.rs:27:33
@@ -62,9 +56,7 @@ LL | Some(ControlFlow::Break(123)?)
6256 | ^ this `?` produces `ControlFlow<{integer}, Infallible>`, which is incompatible with `Option<u64>`
6357 |
6458 = help: the trait `FromResidual<ControlFlow<{integer}, Infallible>>` is not implemented for `Option<u64>`
65- = help: the following other types implement trait `FromResidual<R>`:
66- `Option<T>` implements `FromResidual<Yeet<()>>`
67- `Option<T>` implements `FromResidual`
59+ = help: the trait `FromResidual` is implemented for `Option<T>`
6860
6961error[E0277]: the `?` operator can only be used on `ControlFlow`s in a function that returns `ControlFlow`
7062 --> $DIR/bad-interconversion.rs:32:39
0 commit comments