Point at more cases involving return types
This commit is contained in:
parent
c4318502bc
commit
9b8243ac24
2 changed files with 9 additions and 2 deletions
|
|
@ -13,6 +13,9 @@ LL | 1u32
|
|||
error[E0308]: mismatched types
|
||||
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:13:16
|
||||
|
|
||||
LL | return 0i32;
|
||||
| ---- expected because of this statement
|
||||
LL | } else {
|
||||
LL | return 1u32;
|
||||
| ^^^^ expected i32, found u32
|
||||
|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue