1 error[E0308]: mismatched types
2 --> $DIR/numeric-suffix-i32.rs:28:16
4 LL | foo::<i32>(42_usize);
5 | ---------- ^^^^^^^^ expected `i32`, found `usize`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/numeric-suffix-i32.rs:3:4
12 LL | fn foo<N>(_x: N) {}
14 help: change the type of the numeric literal from `usize` to `i32`
16 LL | foo::<i32>(42_i32);
19 error[E0308]: mismatched types
20 --> $DIR/numeric-suffix-i32.rs:32:16
22 LL | foo::<i32>(42_u64);
23 | ---------- ^^^^^^ expected `i32`, found `u64`
25 | arguments to this function are incorrect
27 note: function defined here
28 --> $DIR/numeric-suffix-i32.rs:3:4
30 LL | fn foo<N>(_x: N) {}
32 help: change the type of the numeric literal from `u64` to `i32`
34 LL | foo::<i32>(42_i32);
37 error[E0308]: mismatched types
38 --> $DIR/numeric-suffix-i32.rs:36:16
40 LL | foo::<i32>(42_u32);
41 | ---------- ^^^^^^ expected `i32`, found `u32`
43 | arguments to this function are incorrect
45 note: function defined here
46 --> $DIR/numeric-suffix-i32.rs:3:4
48 LL | fn foo<N>(_x: N) {}
50 help: change the type of the numeric literal from `u32` to `i32`
52 LL | foo::<i32>(42_i32);
55 error[E0308]: mismatched types
56 --> $DIR/numeric-suffix-i32.rs:40:16
58 LL | foo::<i32>(42_u16);
59 | ---------- ^^^^^^ expected `i32`, found `u16`
61 | arguments to this function are incorrect
63 note: function defined here
64 --> $DIR/numeric-suffix-i32.rs:3:4
66 LL | fn foo<N>(_x: N) {}
68 help: change the type of the numeric literal from `u16` to `i32`
70 LL | foo::<i32>(42_i32);
73 error[E0308]: mismatched types
74 --> $DIR/numeric-suffix-i32.rs:44:16
76 LL | foo::<i32>(42_u8);
77 | ---------- ^^^^^ expected `i32`, found `u8`
79 | arguments to this function are incorrect
81 note: function defined here
82 --> $DIR/numeric-suffix-i32.rs:3:4
84 LL | fn foo<N>(_x: N) {}
86 help: change the type of the numeric literal from `u8` to `i32`
88 LL | foo::<i32>(42_i32);
91 error[E0308]: mismatched types
92 --> $DIR/numeric-suffix-i32.rs:48:16
94 LL | foo::<i32>(42_isize);
95 | ---------- ^^^^^^^^ expected `i32`, found `isize`
97 | arguments to this function are incorrect
99 note: function defined here
100 --> $DIR/numeric-suffix-i32.rs:3:4
102 LL | fn foo<N>(_x: N) {}
104 help: change the type of the numeric literal from `isize` to `i32`
106 LL | foo::<i32>(42_i32);
109 error[E0308]: mismatched types
110 --> $DIR/numeric-suffix-i32.rs:52:16
112 LL | foo::<i32>(42_i64);
113 | ---------- ^^^^^^ expected `i32`, found `i64`
115 | arguments to this function are incorrect
117 note: function defined here
118 --> $DIR/numeric-suffix-i32.rs:3:4
120 LL | fn foo<N>(_x: N) {}
122 help: change the type of the numeric literal from `i64` to `i32`
124 LL | foo::<i32>(42_i32);
127 error[E0308]: mismatched types
128 --> $DIR/numeric-suffix-i32.rs:57:16
130 LL | foo::<i32>(42_i16);
131 | ---------- ^^^^^^ expected `i32`, found `i16`
133 | arguments to this function are incorrect
135 note: function defined here
136 --> $DIR/numeric-suffix-i32.rs:3:4
138 LL | fn foo<N>(_x: N) {}
140 help: change the type of the numeric literal from `i16` to `i32`
142 LL | foo::<i32>(42_i32);
145 error[E0308]: mismatched types
146 --> $DIR/numeric-suffix-i32.rs:61:16
148 LL | foo::<i32>(42_i8);
149 | ---------- ^^^^^ expected `i32`, found `i8`
151 | arguments to this function are incorrect
153 note: function defined here
154 --> $DIR/numeric-suffix-i32.rs:3:4
156 LL | fn foo<N>(_x: N) {}
158 help: change the type of the numeric literal from `i8` to `i32`
160 LL | foo::<i32>(42_i32);
163 error[E0308]: mismatched types
164 --> $DIR/numeric-suffix-i32.rs:65:16
166 LL | foo::<i32>(42.0_f64);
167 | ---------- ^^^^^^^^ expected `i32`, found `f64`
169 | arguments to this function are incorrect
171 note: function defined here
172 --> $DIR/numeric-suffix-i32.rs:3:4
174 LL | fn foo<N>(_x: N) {}
176 help: change the type of the numeric literal from `f64` to `i32`
178 LL | foo::<i32>(42i32);
181 error[E0308]: mismatched types
182 --> $DIR/numeric-suffix-i32.rs:69:16
184 LL | foo::<i32>(42.0_f32);
185 | ---------- ^^^^^^^^ expected `i32`, found `f32`
187 | arguments to this function are incorrect
189 note: function defined here
190 --> $DIR/numeric-suffix-i32.rs:3:4
192 LL | fn foo<N>(_x: N) {}
194 help: change the type of the numeric literal from `f32` to `i32`
196 LL | foo::<i32>(42i32);
199 error: aborting due to 11 previous errors
201 For more information about this error, try `rustc --explain E0308`.