1 error[E0308]: mismatched types
2 --> $DIR/numeric-literal-cast.rs:6:9
5 | --- ^^^ expected `u16`, found `u8`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/numeric-literal-cast.rs:1:4
12 LL | fn foo(_: u16) {}
14 help: change the type of the numeric literal from `u8` to `u16`
19 error[E0308]: mismatched types
20 --> $DIR/numeric-literal-cast.rs:8:10
23 | ---- ^^^^ expected `f64`, found `f32`
25 | arguments to this function are incorrect
27 note: function defined here
28 --> $DIR/numeric-literal-cast.rs:2:4
30 LL | fn foo1(_: f64) {}
32 help: change the type of the numeric literal from `f32` to `f64`
37 error[E0308]: mismatched types
38 --> $DIR/numeric-literal-cast.rs:10:10
41 | ---- ^^^^ expected `i32`, found `i16`
43 | arguments to this function are incorrect
45 note: function defined here
46 --> $DIR/numeric-literal-cast.rs:3:4
48 LL | fn foo2(_: i32) {}
50 help: change the type of the numeric literal from `i16` to `i32`
55 error: aborting due to 3 previous errors
57 For more information about this error, try `rustc --explain E0308`.