]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pptypedef.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / pptypedef.stderr
1 error[E0308]: mismatched types
2 --> $DIR/pptypedef.rs:4:37
3 |
4 LL | let_in(3u32, |i| { assert!(i == 3i32); });
5 | ^^^^ expected `u32`, found `i32`
6 |
7 help: change the type of the numeric literal from `i32` to `u32`
8 |
9 LL | let_in(3u32, |i| { assert!(i == 3u32); });
10 | ~~~~
11
12 error[E0308]: mismatched types
13 --> $DIR/pptypedef.rs:8:37
14 |
15 LL | let_in(3i32, |i| { assert!(i == 3u32); });
16 | ^^^^ expected `i32`, found `u32`
17 |
18 help: change the type of the numeric literal from `u32` to `i32`
19 |
20 LL | let_in(3i32, |i| { assert!(i == 3i32); });
21 | ~~~~
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.