Rollup merge of #71409 - estebank:point-at-ret-question-mark-op, r=petrochenkov
Point at the return type on `.into()` failure caused by `?` Fix #35946.
This commit is contained in:
commit
c95bcbc9d5
5 changed files with 48 additions and 14 deletions
|
|
@ -1,6 +1,8 @@
|
|||
error[E0277]: `?` couldn't convert the error to `()`
|
||||
--> $DIR/issue-32709.rs:4:11
|
||||
|
|
||||
LL | fn a() -> Result<i32, ()> {
|
||||
| --------------- expected `()` because of this
|
||||
LL | Err(5)?;
|
||||
| ^ the trait `std::convert::From<{integer}>` is not implemented for `()`
|
||||
|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue