1 error[E0308]: mismatched types
2 --> $DIR/numeric-suffix-i32.rs:6:16
4 LL | foo::<i32>(42_usize);
5 | ^^^^^^^^ expected `i32`, found `usize`
7 help: change the type of the numeric literal from `usize` to `i32`
9 LL | foo::<i32>(42_i32);
12 error[E0308]: mismatched types
13 --> $DIR/numeric-suffix-i32.rs:9:16
15 LL | foo::<i32>(42_u64);
16 | ^^^^^^ expected `i32`, found `u64`
18 help: change the type of the numeric literal from `u64` to `i32`
20 LL | foo::<i32>(42_i32);
23 error[E0308]: mismatched types
24 --> $DIR/numeric-suffix-i32.rs:12:16
26 LL | foo::<i32>(42_u32);
27 | ^^^^^^ expected `i32`, found `u32`
29 help: change the type of the numeric literal from `u32` to `i32`
31 LL | foo::<i32>(42_i32);
34 error[E0308]: mismatched types
35 --> $DIR/numeric-suffix-i32.rs:15:16
37 LL | foo::<i32>(42_u16);
38 | ^^^^^^ expected `i32`, found `u16`
40 help: change the type of the numeric literal from `u16` to `i32`
42 LL | foo::<i32>(42_i32);
45 error[E0308]: mismatched types
46 --> $DIR/numeric-suffix-i32.rs:18:16
48 LL | foo::<i32>(42_u8);
49 | ^^^^^ expected `i32`, found `u8`
51 help: change the type of the numeric literal from `u8` to `i32`
53 LL | foo::<i32>(42_i32);
56 error[E0308]: mismatched types
57 --> $DIR/numeric-suffix-i32.rs:21:16
59 LL | foo::<i32>(42_isize);
60 | ^^^^^^^^ expected `i32`, found `isize`
62 help: change the type of the numeric literal from `isize` to `i32`
64 LL | foo::<i32>(42_i32);
67 error[E0308]: mismatched types
68 --> $DIR/numeric-suffix-i32.rs:24:16
70 LL | foo::<i32>(42_i64);
71 | ^^^^^^ expected `i32`, found `i64`
73 help: change the type of the numeric literal from `i64` to `i32`
75 LL | foo::<i32>(42_i32);
78 error[E0308]: mismatched types
79 --> $DIR/numeric-suffix-i32.rs:28:16
81 LL | foo::<i32>(42_i16);
82 | ^^^^^^ expected `i32`, found `i16`
84 help: change the type of the numeric literal from `i16` to `i32`
86 LL | foo::<i32>(42_i32);
89 error[E0308]: mismatched types
90 --> $DIR/numeric-suffix-i32.rs:31:16
92 LL | foo::<i32>(42_i8);
93 | ^^^^^ expected `i32`, found `i8`
95 help: change the type of the numeric literal from `i8` to `i32`
97 LL | foo::<i32>(42_i32);
100 error[E0308]: mismatched types
101 --> $DIR/numeric-suffix-i32.rs:34:16
103 LL | foo::<i32>(42.0_f64);
104 | ^^^^^^^^ expected `i32`, found `f64`
106 help: change the type of the numeric literal from `f64` to `i32`
108 LL | foo::<i32>(42i32);
111 error[E0308]: mismatched types
112 --> $DIR/numeric-suffix-i32.rs:37:16
114 LL | foo::<i32>(42.0_f32);
115 | ^^^^^^^^ expected `i32`, found `f32`
117 help: change the type of the numeric literal from `f32` to `i32`
119 LL | foo::<i32>(42i32);
122 error: aborting due to 11 previous errors
124 For more information about this error, try `rustc --explain E0308`.