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