Point at more cases involving return types

This commit is contained in:
Esteban Küber 2019-01-17 21:18:51 -08:00
parent c4318502bc
commit 9b8243ac24
2 changed files with 9 additions and 2 deletions

View file

@ -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
|