]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-32709.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-32709.stderr
CommitLineData
48663c56
XL
1error[E0277]: `?` couldn't convert the error to `()`
2 --> $DIR/issue-32709.rs:4:11
8faf50e0 3 |
f9f354fc
XL
4LL | fn a() -> Result<i32, ()> {
5 | --------------- expected `()` because of this
532ac7d7 6LL | Err(5)?;
1b1a35ee 7 | ^ the trait `From<{integer}>` is not implemented for `()`
8faf50e0 8 |
48663c56 9 = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
04454e1e
FG
10 = help: the following other types implement trait `FromResidual<R>`:
11 <Result<T, F> as FromResidual<Result<Infallible, E>>>
12 <Result<T, F> as FromResidual<Yeet<E>>>
f2b60f7d 13 = note: required for `Result<i32, ()>` to implement `FromResidual<Result<Infallible, {integer}>>`
8faf50e0
XL
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.