1 error[E0308]: mismatched types
2 --> $DIR/integer-literal-suffix-inference.rs:32:11
5 | ^^^ expected `i8`, found `i16`
7 help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
9 LL | id_i8(a16.try_into().unwrap());
10 | ^^^^^^^^^^^^^^^^^^^^^^^
12 error[E0308]: mismatched types
13 --> $DIR/integer-literal-suffix-inference.rs:35:11
16 | ^^^ expected `i8`, found `i32`
18 help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
20 LL | id_i8(a32.try_into().unwrap());
21 | ^^^^^^^^^^^^^^^^^^^^^^^
23 error[E0308]: mismatched types
24 --> $DIR/integer-literal-suffix-inference.rs:38:11
27 | ^^^ expected `i8`, found `i64`
29 help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
31 LL | id_i8(a64.try_into().unwrap());
32 | ^^^^^^^^^^^^^^^^^^^^^^^
34 error[E0308]: mismatched types
35 --> $DIR/integer-literal-suffix-inference.rs:42:12
40 | expected `i16`, found `i8`
41 | help: you can convert an `i8` to `i16`: `a8.into()`
43 error[E0308]: mismatched types
44 --> $DIR/integer-literal-suffix-inference.rs:46:12
47 | ^^^ expected `i16`, found `i32`
49 help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
51 LL | id_i16(a32.try_into().unwrap());
52 | ^^^^^^^^^^^^^^^^^^^^^^^
54 error[E0308]: mismatched types
55 --> $DIR/integer-literal-suffix-inference.rs:49:12
58 | ^^^ expected `i16`, found `i64`
60 help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
62 LL | id_i16(a64.try_into().unwrap());
63 | ^^^^^^^^^^^^^^^^^^^^^^^
65 error[E0308]: mismatched types
66 --> $DIR/integer-literal-suffix-inference.rs:53:12
71 | expected `i32`, found `i8`
72 | help: you can convert an `i8` to `i32`: `a8.into()`
74 error[E0308]: mismatched types
75 --> $DIR/integer-literal-suffix-inference.rs:56:12
80 | expected `i32`, found `i16`
81 | help: you can convert an `i16` to `i32`: `a16.into()`
83 error[E0308]: mismatched types
84 --> $DIR/integer-literal-suffix-inference.rs:60:12
87 | ^^^ expected `i32`, found `i64`
89 help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
91 LL | id_i32(a64.try_into().unwrap());
92 | ^^^^^^^^^^^^^^^^^^^^^^^
94 error[E0308]: mismatched types
95 --> $DIR/integer-literal-suffix-inference.rs:64:12
100 | expected `i64`, found `i8`
101 | help: you can convert an `i8` to `i64`: `a8.into()`
103 error[E0308]: mismatched types
104 --> $DIR/integer-literal-suffix-inference.rs:67:12
109 | expected `i64`, found `i16`
110 | help: you can convert an `i16` to `i64`: `a16.into()`
112 error[E0308]: mismatched types
113 --> $DIR/integer-literal-suffix-inference.rs:70:12
118 | expected `i64`, found `i32`
119 | help: you can convert an `i32` to `i64`: `a32.into()`
121 error[E0308]: mismatched types
122 --> $DIR/integer-literal-suffix-inference.rs:76:11
125 | ^^^ expected `i8`, found `i16`
127 help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
129 LL | id_i8(c16.try_into().unwrap());
130 | ^^^^^^^^^^^^^^^^^^^^^^^
132 error[E0308]: mismatched types
133 --> $DIR/integer-literal-suffix-inference.rs:79:11
136 | ^^^ expected `i8`, found `i32`
138 help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
140 LL | id_i8(c32.try_into().unwrap());
141 | ^^^^^^^^^^^^^^^^^^^^^^^
143 error[E0308]: mismatched types
144 --> $DIR/integer-literal-suffix-inference.rs:82:11
147 | ^^^ expected `i8`, found `i64`
149 help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
151 LL | id_i8(c64.try_into().unwrap());
152 | ^^^^^^^^^^^^^^^^^^^^^^^
154 error[E0308]: mismatched types
155 --> $DIR/integer-literal-suffix-inference.rs:86:12
160 | expected `i16`, found `i8`
161 | help: you can convert an `i8` to `i16`: `c8.into()`
163 error[E0308]: mismatched types
164 --> $DIR/integer-literal-suffix-inference.rs:90:12
167 | ^^^ expected `i16`, found `i32`
169 help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
171 LL | id_i16(c32.try_into().unwrap());
172 | ^^^^^^^^^^^^^^^^^^^^^^^
174 error[E0308]: mismatched types
175 --> $DIR/integer-literal-suffix-inference.rs:93:12
178 | ^^^ expected `i16`, found `i64`
180 help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
182 LL | id_i16(c64.try_into().unwrap());
183 | ^^^^^^^^^^^^^^^^^^^^^^^
185 error[E0308]: mismatched types
186 --> $DIR/integer-literal-suffix-inference.rs:97:12
191 | expected `i32`, found `i8`
192 | help: you can convert an `i8` to `i32`: `c8.into()`
194 error[E0308]: mismatched types
195 --> $DIR/integer-literal-suffix-inference.rs:100:12
200 | expected `i32`, found `i16`
201 | help: you can convert an `i16` to `i32`: `c16.into()`
203 error[E0308]: mismatched types
204 --> $DIR/integer-literal-suffix-inference.rs:104:12
207 | ^^^ expected `i32`, found `i64`
209 help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
211 LL | id_i32(c64.try_into().unwrap());
212 | ^^^^^^^^^^^^^^^^^^^^^^^
214 error[E0308]: mismatched types
215 --> $DIR/integer-literal-suffix-inference.rs:108:12
220 | expected `i64`, found `i8`
221 | help: you can convert an `i8` to `i64`: `a8.into()`
223 error[E0308]: mismatched types
224 --> $DIR/integer-literal-suffix-inference.rs:111:12
229 | expected `i64`, found `i16`
230 | help: you can convert an `i16` to `i64`: `a16.into()`
232 error[E0308]: mismatched types
233 --> $DIR/integer-literal-suffix-inference.rs:114:12
238 | expected `i64`, found `i32`
239 | help: you can convert an `i32` to `i64`: `a32.into()`
241 error[E0308]: mismatched types
242 --> $DIR/integer-literal-suffix-inference.rs:120:11
245 | ^^^ expected `u8`, found `u16`
247 help: you can convert an `u16` to `u8` and panic if the converted value wouldn't fit
249 LL | id_u8(b16.try_into().unwrap());
250 | ^^^^^^^^^^^^^^^^^^^^^^^
252 error[E0308]: mismatched types
253 --> $DIR/integer-literal-suffix-inference.rs:123:11
256 | ^^^ expected `u8`, found `u32`
258 help: you can convert an `u32` to `u8` and panic if the converted value wouldn't fit
260 LL | id_u8(b32.try_into().unwrap());
261 | ^^^^^^^^^^^^^^^^^^^^^^^
263 error[E0308]: mismatched types
264 --> $DIR/integer-literal-suffix-inference.rs:126:11
267 | ^^^ expected `u8`, found `u64`
269 help: you can convert an `u64` to `u8` and panic if the converted value wouldn't fit
271 LL | id_u8(b64.try_into().unwrap());
272 | ^^^^^^^^^^^^^^^^^^^^^^^
274 error[E0308]: mismatched types
275 --> $DIR/integer-literal-suffix-inference.rs:130:12
280 | expected `u16`, found `u8`
281 | help: you can convert an `u8` to `u16`: `b8.into()`
283 error[E0308]: mismatched types
284 --> $DIR/integer-literal-suffix-inference.rs:134:12
287 | ^^^ expected `u16`, found `u32`
289 help: you can convert an `u32` to `u16` and panic if the converted value wouldn't fit
291 LL | id_u16(b32.try_into().unwrap());
292 | ^^^^^^^^^^^^^^^^^^^^^^^
294 error[E0308]: mismatched types
295 --> $DIR/integer-literal-suffix-inference.rs:137:12
298 | ^^^ expected `u16`, found `u64`
300 help: you can convert an `u64` to `u16` and panic if the converted value wouldn't fit
302 LL | id_u16(b64.try_into().unwrap());
303 | ^^^^^^^^^^^^^^^^^^^^^^^
305 error[E0308]: mismatched types
306 --> $DIR/integer-literal-suffix-inference.rs:141:12
311 | expected `u32`, found `u8`
312 | help: you can convert an `u8` to `u32`: `b8.into()`
314 error[E0308]: mismatched types
315 --> $DIR/integer-literal-suffix-inference.rs:144:12
320 | expected `u32`, found `u16`
321 | help: you can convert an `u16` to `u32`: `b16.into()`
323 error[E0308]: mismatched types
324 --> $DIR/integer-literal-suffix-inference.rs:148:12
327 | ^^^ expected `u32`, found `u64`
329 help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
331 LL | id_u32(b64.try_into().unwrap());
332 | ^^^^^^^^^^^^^^^^^^^^^^^
334 error[E0308]: mismatched types
335 --> $DIR/integer-literal-suffix-inference.rs:152:12
340 | expected `u64`, found `u8`
341 | help: you can convert an `u8` to `u64`: `b8.into()`
343 error[E0308]: mismatched types
344 --> $DIR/integer-literal-suffix-inference.rs:155:12
349 | expected `u64`, found `u16`
350 | help: you can convert an `u16` to `u64`: `b16.into()`
352 error[E0308]: mismatched types
353 --> $DIR/integer-literal-suffix-inference.rs:158:12
358 | expected `u64`, found `u32`
359 | help: you can convert an `u32` to `u64`: `b32.into()`
361 error: aborting due to 36 previous errors
363 For more information about this error, try `rustc --explain E0308`.