]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/pptypedef.rs:4:37 |
b7449926 XL |
3 | | |
4 | LL | let_in(3u32, |i| { assert!(i == 3i32); }); | |
d9bb1a4e | 5 | | ^^^^ expected `u32`, found `i32` |
e74abb32 | 6 | | |
48663c56 XL |
7 | help: change the type of the numeric literal from `i32` to `u32` |
8 | | | |
9 | LL | let_in(3u32, |i| { assert!(i == 3u32); }); | |
10 | | ^^^^ | |
b7449926 XL |
11 | |
12 | error[E0308]: mismatched types | |
0731742a | 13 | --> $DIR/pptypedef.rs:8:37 |
b7449926 XL |
14 | | |
15 | LL | let_in(3i32, |i| { assert!(i == 3u32); }); | |
d9bb1a4e | 16 | | ^^^^ expected `i32`, found `u32` |
e74abb32 | 17 | | |
48663c56 XL |
18 | help: change the type of the numeric literal from `u32` to `i32` |
19 | | | |
20 | LL | let_in(3i32, |i| { assert!(i == 3i32); }); | |
21 | | ^^^^ | |
b7449926 XL |
22 | |
23 | error: aborting due to 2 previous errors | |
24 | ||
25 | For more information about this error, try `rustc --explain E0308`. |