LL | }
LL | 1u32
| ^^^^ expected i32, found u32
- |
- = note: expected type `i32`
- found type `u32`
error[E0308]: mismatched types
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:13:16
LL | } else {
LL | return 1u32;
| ^^^^ expected i32, found u32
- |
- = note: expected type `i32`
- found type `u32`
error[E0308]: mismatched types
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:22:9
LL | } else {
LL | 1u32
| ^^^^ expected i32, found u32
- |
- = note: expected type `i32`
- found type `u32`
error[E0308]: if and else have incompatible types
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:31:9
LL | |
LL | | }
| |_____- if and else have incompatible types
- |
- = note: expected type `i32`
- found type `u32`
error[E0308]: mismatched types
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:39:14
| ---- ...is found to be `i32` here
LL | _ => 1u32,
| ^^^^ expected i32, found u32
- |
- = note: expected type `i32`
- found type `u32`
error[E0308]: mismatched types
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:45:5
LL | | _ => 2u32,
LL | | }
| |_____^ expected i32, found u32
- |
- = note: expected type `i32`
- found type `u32`
error[E0308]: mismatched types
--> $DIR/point-to-type-err-cause-on-impl-trait-return.rs:59:13
...
LL | 1u32
| ^^^^ expected i32, found u32
- |
- = note: expected type `i32`
- found type `u32`
error: aborting due to 7 previous errors