fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-1448-2.rs:6:24 3 | 4LL | println!("{}", foo(10i32)); 5 | --- ^^^^^ expected `u32`, found `i32` 6 | | 7 | arguments to this function are incorrect 8 | 9note: function defined here 10 --> $DIR/issue-1448-2.rs:3:4 11 | 12LL | fn foo(a: u32) -> u32 { a } 13 | ^^^ ------ 14help: change the type of the numeric literal from `i32` to `u32` 15 | 16LL | println!("{}", foo(10u32)); 17 | ~~~ 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0308`.