1 error[E0308]: mismatched types
2 --> $DIR/integer-literal-suffix-inference.rs:38: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:41: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:44: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:47:11
38 | ^^^^^ expected `i8`, found `isize`
40 help: you can convert an `isize` to `i8` and panic if the converted value wouldn't fit
42 LL | id_i8(asize.try_into().unwrap());
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^
45 error[E0308]: mismatched types
46 --> $DIR/integer-literal-suffix-inference.rs:51:12
51 | expected `i16`, found `i8`
52 | help: you can convert an `i8` to `i16`: `a8.into()`
54 error[E0308]: mismatched types
55 --> $DIR/integer-literal-suffix-inference.rs:55:12
58 | ^^^ expected `i16`, found `i32`
60 help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
62 LL | id_i16(a32.try_into().unwrap());
63 | ^^^^^^^^^^^^^^^^^^^^^^^
65 error[E0308]: mismatched types
66 --> $DIR/integer-literal-suffix-inference.rs:58:12
69 | ^^^ expected `i16`, found `i64`
71 help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
73 LL | id_i16(a64.try_into().unwrap());
74 | ^^^^^^^^^^^^^^^^^^^^^^^
76 error[E0308]: mismatched types
77 --> $DIR/integer-literal-suffix-inference.rs:61:12
80 | ^^^^^ expected `i16`, found `isize`
82 help: you can convert an `isize` to `i16` and panic if the converted value wouldn't fit
84 LL | id_i16(asize.try_into().unwrap());
85 | ^^^^^^^^^^^^^^^^^^^^^^^^^
87 error[E0308]: mismatched types
88 --> $DIR/integer-literal-suffix-inference.rs:65:12
93 | expected `i32`, found `i8`
94 | help: you can convert an `i8` to `i32`: `a8.into()`
96 error[E0308]: mismatched types
97 --> $DIR/integer-literal-suffix-inference.rs:68:12
102 | expected `i32`, found `i16`
103 | help: you can convert an `i16` to `i32`: `a16.into()`
105 error[E0308]: mismatched types
106 --> $DIR/integer-literal-suffix-inference.rs:72:12
109 | ^^^ expected `i32`, found `i64`
111 help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
113 LL | id_i32(a64.try_into().unwrap());
114 | ^^^^^^^^^^^^^^^^^^^^^^^
116 error[E0308]: mismatched types
117 --> $DIR/integer-literal-suffix-inference.rs:75:12
120 | ^^^^^ expected `i32`, found `isize`
122 help: you can convert an `isize` to `i32` and panic if the converted value wouldn't fit
124 LL | id_i32(asize.try_into().unwrap());
125 | ^^^^^^^^^^^^^^^^^^^^^^^^^
127 error[E0308]: mismatched types
128 --> $DIR/integer-literal-suffix-inference.rs:79:12
133 | expected `i64`, found `i8`
134 | help: you can convert an `i8` to `i64`: `a8.into()`
136 error[E0308]: mismatched types
137 --> $DIR/integer-literal-suffix-inference.rs:82:12
142 | expected `i64`, found `i16`
143 | help: you can convert an `i16` to `i64`: `a16.into()`
145 error[E0308]: mismatched types
146 --> $DIR/integer-literal-suffix-inference.rs:85:12
151 | expected `i64`, found `i32`
152 | help: you can convert an `i32` to `i64`: `a32.into()`
154 error[E0308]: mismatched types
155 --> $DIR/integer-literal-suffix-inference.rs:89:12
158 | ^^^^^ expected `i64`, found `isize`
160 help: you can convert an `isize` to `i64` and panic if the converted value wouldn't fit
162 LL | id_i64(asize.try_into().unwrap());
163 | ^^^^^^^^^^^^^^^^^^^^^^^^^
165 error[E0308]: mismatched types
166 --> $DIR/integer-literal-suffix-inference.rs:93:14
171 | expected `isize`, found `i8`
172 | help: you can convert an `i8` to `isize`: `a8.into()`
174 error[E0308]: mismatched types
175 --> $DIR/integer-literal-suffix-inference.rs:96:14
180 | expected `isize`, found `i16`
181 | help: you can convert an `i16` to `isize`: `a16.into()`
183 error[E0308]: mismatched types
184 --> $DIR/integer-literal-suffix-inference.rs:99:14
187 | ^^^ expected `isize`, found `i32`
189 help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
191 LL | id_isize(a32.try_into().unwrap());
192 | ^^^^^^^^^^^^^^^^^^^^^^^
194 error[E0308]: mismatched types
195 --> $DIR/integer-literal-suffix-inference.rs:102:14
198 | ^^^ expected `isize`, found `i64`
200 help: you can convert an `i64` to `isize` and panic if the converted value wouldn't fit
202 LL | id_isize(a64.try_into().unwrap());
203 | ^^^^^^^^^^^^^^^^^^^^^^^
205 error[E0308]: mismatched types
206 --> $DIR/integer-literal-suffix-inference.rs:108:11
209 | ^^^ expected `i8`, found `i16`
211 help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
213 LL | id_i8(c16.try_into().unwrap());
214 | ^^^^^^^^^^^^^^^^^^^^^^^
216 error[E0308]: mismatched types
217 --> $DIR/integer-literal-suffix-inference.rs:111:11
220 | ^^^ expected `i8`, found `i32`
222 help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
224 LL | id_i8(c32.try_into().unwrap());
225 | ^^^^^^^^^^^^^^^^^^^^^^^
227 error[E0308]: mismatched types
228 --> $DIR/integer-literal-suffix-inference.rs:114:11
231 | ^^^ expected `i8`, found `i64`
233 help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
235 LL | id_i8(c64.try_into().unwrap());
236 | ^^^^^^^^^^^^^^^^^^^^^^^
238 error[E0308]: mismatched types
239 --> $DIR/integer-literal-suffix-inference.rs:118:12
244 | expected `i16`, found `i8`
245 | help: you can convert an `i8` to `i16`: `c8.into()`
247 error[E0308]: mismatched types
248 --> $DIR/integer-literal-suffix-inference.rs:122:12
251 | ^^^ expected `i16`, found `i32`
253 help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
255 LL | id_i16(c32.try_into().unwrap());
256 | ^^^^^^^^^^^^^^^^^^^^^^^
258 error[E0308]: mismatched types
259 --> $DIR/integer-literal-suffix-inference.rs:125:12
262 | ^^^ expected `i16`, found `i64`
264 help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
266 LL | id_i16(c64.try_into().unwrap());
267 | ^^^^^^^^^^^^^^^^^^^^^^^
269 error[E0308]: mismatched types
270 --> $DIR/integer-literal-suffix-inference.rs:129:12
275 | expected `i32`, found `i8`
276 | help: you can convert an `i8` to `i32`: `c8.into()`
278 error[E0308]: mismatched types
279 --> $DIR/integer-literal-suffix-inference.rs:132:12
284 | expected `i32`, found `i16`
285 | help: you can convert an `i16` to `i32`: `c16.into()`
287 error[E0308]: mismatched types
288 --> $DIR/integer-literal-suffix-inference.rs:136:12
291 | ^^^ expected `i32`, found `i64`
293 help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
295 LL | id_i32(c64.try_into().unwrap());
296 | ^^^^^^^^^^^^^^^^^^^^^^^
298 error[E0308]: mismatched types
299 --> $DIR/integer-literal-suffix-inference.rs:140:12
304 | expected `i64`, found `i8`
305 | help: you can convert an `i8` to `i64`: `a8.into()`
307 error[E0308]: mismatched types
308 --> $DIR/integer-literal-suffix-inference.rs:143:12
313 | expected `i64`, found `i16`
314 | help: you can convert an `i16` to `i64`: `a16.into()`
316 error[E0308]: mismatched types
317 --> $DIR/integer-literal-suffix-inference.rs:146:12
322 | expected `i64`, found `i32`
323 | help: you can convert an `i32` to `i64`: `a32.into()`
325 error[E0308]: mismatched types
326 --> $DIR/integer-literal-suffix-inference.rs:152:11
329 | ^^^ expected `u8`, found `u16`
331 help: you can convert an `u16` to `u8` and panic if the converted value wouldn't fit
333 LL | id_u8(b16.try_into().unwrap());
334 | ^^^^^^^^^^^^^^^^^^^^^^^
336 error[E0308]: mismatched types
337 --> $DIR/integer-literal-suffix-inference.rs:155:11
340 | ^^^ expected `u8`, found `u32`
342 help: you can convert an `u32` to `u8` and panic if the converted value wouldn't fit
344 LL | id_u8(b32.try_into().unwrap());
345 | ^^^^^^^^^^^^^^^^^^^^^^^
347 error[E0308]: mismatched types
348 --> $DIR/integer-literal-suffix-inference.rs:158:11
351 | ^^^ expected `u8`, found `u64`
353 help: you can convert an `u64` to `u8` and panic if the converted value wouldn't fit
355 LL | id_u8(b64.try_into().unwrap());
356 | ^^^^^^^^^^^^^^^^^^^^^^^
358 error[E0308]: mismatched types
359 --> $DIR/integer-literal-suffix-inference.rs:161:11
362 | ^^^^^ expected `u8`, found `usize`
364 help: you can convert an `usize` to `u8` and panic if the converted value wouldn't fit
366 LL | id_u8(bsize.try_into().unwrap());
367 | ^^^^^^^^^^^^^^^^^^^^^^^^^
369 error[E0308]: mismatched types
370 --> $DIR/integer-literal-suffix-inference.rs:165:12
375 | expected `u16`, found `u8`
376 | help: you can convert an `u8` to `u16`: `b8.into()`
378 error[E0308]: mismatched types
379 --> $DIR/integer-literal-suffix-inference.rs:169:12
382 | ^^^ expected `u16`, found `u32`
384 help: you can convert an `u32` to `u16` and panic if the converted value wouldn't fit
386 LL | id_u16(b32.try_into().unwrap());
387 | ^^^^^^^^^^^^^^^^^^^^^^^
389 error[E0308]: mismatched types
390 --> $DIR/integer-literal-suffix-inference.rs:172:12
393 | ^^^ expected `u16`, found `u64`
395 help: you can convert an `u64` to `u16` and panic if the converted value wouldn't fit
397 LL | id_u16(b64.try_into().unwrap());
398 | ^^^^^^^^^^^^^^^^^^^^^^^
400 error[E0308]: mismatched types
401 --> $DIR/integer-literal-suffix-inference.rs:175:12
404 | ^^^^^ expected `u16`, found `usize`
406 help: you can convert an `usize` to `u16` and panic if the converted value wouldn't fit
408 LL | id_u16(bsize.try_into().unwrap());
409 | ^^^^^^^^^^^^^^^^^^^^^^^^^
411 error[E0308]: mismatched types
412 --> $DIR/integer-literal-suffix-inference.rs:179:12
417 | expected `u32`, found `u8`
418 | help: you can convert an `u8` to `u32`: `b8.into()`
420 error[E0308]: mismatched types
421 --> $DIR/integer-literal-suffix-inference.rs:182:12
426 | expected `u32`, found `u16`
427 | help: you can convert an `u16` to `u32`: `b16.into()`
429 error[E0308]: mismatched types
430 --> $DIR/integer-literal-suffix-inference.rs:186:12
433 | ^^^ expected `u32`, found `u64`
435 help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
437 LL | id_u32(b64.try_into().unwrap());
438 | ^^^^^^^^^^^^^^^^^^^^^^^
440 error[E0308]: mismatched types
441 --> $DIR/integer-literal-suffix-inference.rs:189:12
444 | ^^^^^ expected `u32`, found `usize`
446 help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit
448 LL | id_u32(bsize.try_into().unwrap());
449 | ^^^^^^^^^^^^^^^^^^^^^^^^^
451 error[E0308]: mismatched types
452 --> $DIR/integer-literal-suffix-inference.rs:193:12
457 | expected `u64`, found `u8`
458 | help: you can convert an `u8` to `u64`: `b8.into()`
460 error[E0308]: mismatched types
461 --> $DIR/integer-literal-suffix-inference.rs:196:12
466 | expected `u64`, found `u16`
467 | help: you can convert an `u16` to `u64`: `b16.into()`
469 error[E0308]: mismatched types
470 --> $DIR/integer-literal-suffix-inference.rs:199:12
475 | expected `u64`, found `u32`
476 | help: you can convert an `u32` to `u64`: `b32.into()`
478 error[E0308]: mismatched types
479 --> $DIR/integer-literal-suffix-inference.rs:203:12
482 | ^^^^^ expected `u64`, found `usize`
484 help: you can convert an `usize` to `u64` and panic if the converted value wouldn't fit
486 LL | id_u64(bsize.try_into().unwrap());
487 | ^^^^^^^^^^^^^^^^^^^^^^^^^
489 error[E0308]: mismatched types
490 --> $DIR/integer-literal-suffix-inference.rs:207:14
495 | expected `usize`, found `u8`
496 | help: you can convert an `u8` to `usize`: `b8.into()`
498 error[E0308]: mismatched types
499 --> $DIR/integer-literal-suffix-inference.rs:210:14
504 | expected `usize`, found `u16`
505 | help: you can convert an `u16` to `usize`: `b16.into()`
507 error[E0308]: mismatched types
508 --> $DIR/integer-literal-suffix-inference.rs:213:14
511 | ^^^ expected `usize`, found `u32`
513 help: you can convert an `u32` to `usize` and panic if the converted value wouldn't fit
515 LL | id_usize(b32.try_into().unwrap());
516 | ^^^^^^^^^^^^^^^^^^^^^^^
518 error[E0308]: mismatched types
519 --> $DIR/integer-literal-suffix-inference.rs:216:14
522 | ^^^ expected `usize`, found `u64`
524 help: you can convert an `u64` to `usize` and panic if the converted value wouldn't fit
526 LL | id_usize(b64.try_into().unwrap());
527 | ^^^^^^^^^^^^^^^^^^^^^^^
529 error: aborting due to 52 previous errors
531 For more information about this error, try `rustc --explain E0308`.