1error[E0308]: mismatched types
2  --> $DIR/numeric-literal-cast.rs:6:9
3   |
4LL |     foo(1u8);
5   |         ^^^ expected `u16`, found `u8`
6   |
7help: change the type of the numeric literal from `u8` to `u16`
8   |
9LL |     foo(1u16);
10   |          ~~~
11
12error[E0308]: mismatched types
13  --> $DIR/numeric-literal-cast.rs:8:10
14   |
15LL |     foo1(2f32);
16   |          ^^^^ expected `f64`, found `f32`
17   |
18help: change the type of the numeric literal from `f32` to `f64`
19   |
20LL |     foo1(2f64);
21   |           ~~~
22
23error[E0308]: mismatched types
24  --> $DIR/numeric-literal-cast.rs:10:10
25   |
26LL |     foo2(3i16);
27   |          ^^^^ expected `i32`, found `i16`
28   |
29help: change the type of the numeric literal from `i16` to `i32`
30   |
31LL |     foo2(3i32);
32   |           ~~~
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0308`.
37