]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-1448-2.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / issues / issue-1448-2.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-1448-2.rs:6:24
3 |
4 LL | println!("{}", foo(10i32));
5 | --- ^^^^^ expected `u32`, found `i32`
6 | |
7 | arguments to this function are incorrect
8 |
9 note: function defined here
10 --> $DIR/issue-1448-2.rs:3:4
11 |
12 LL | fn foo(a: u32) -> u32 { a }
13 | ^^^ ------
14 help: change the type of the numeric literal from `i32` to `u32`
15 |
16 LL | println!("{}", foo(10u32));
17 | ~~~
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0308`.