2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/pptypedef.rs:4:37
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let_in(3u32, |i| { assert!(i == 3i32); });
|
2022-12-02 17:56:37 -06:00
|
|
|
| - ^^^^ expected `u32`, found `i32`
|
|
|
|
| |
|
|
|
|
| expected because this is `u32`
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-04-21 17:44:23 -05:00
|
|
|
help: change the type of the numeric literal from `i32` to `u32`
|
|
|
|
|
|
|
|
|
LL | let_in(3u32, |i| { assert!(i == 3u32); });
|
2021-08-10 05:53:43 -05:00
|
|
|
| ~~~
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/pptypedef.rs:8:37
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let_in(3i32, |i| { assert!(i == 3u32); });
|
2022-12-02 17:56:37 -06:00
|
|
|
| - ^^^^ expected `i32`, found `u32`
|
|
|
|
| |
|
|
|
|
| expected because this is `i32`
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-04-21 17:44:23 -05:00
|
|
|
help: change the type of the numeric literal from `u32` to `i32`
|
|
|
|
|
|
|
|
|
LL | let_in(3i32, |i| { assert!(i == 3i32); });
|
2021-08-10 05:53:43 -05:00
|
|
|
| ~~~
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|