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 an `i8` and panic if the converted value doesn'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 an `i8` and panic if the converted value doesn'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 an `i8` and panic if the converted value doesn'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 an `i8` and panic if the converted value doesn'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
49 | ^^ expected `i16`, found `i8`
51 help: you can convert an `i8` to an `i16`
53 LL | id_i16(a8.into());
56 error[E0308]: mismatched types
57 --> $DIR/integer-literal-suffix-inference.rs:55:12
60 | ^^^ expected `i16`, found `i32`
62 help: you can convert an `i32` to an `i16` and panic if the converted value doesn't fit
64 LL | id_i16(a32.try_into().unwrap());
65 | ++++++++++++++++++++
67 error[E0308]: mismatched types
68 --> $DIR/integer-literal-suffix-inference.rs:58:12
71 | ^^^ expected `i16`, found `i64`
73 help: you can convert an `i64` to an `i16` and panic if the converted value doesn't fit
75 LL | id_i16(a64.try_into().unwrap());
76 | ++++++++++++++++++++
78 error[E0308]: mismatched types
79 --> $DIR/integer-literal-suffix-inference.rs:61:12
82 | ^^^^^ expected `i16`, found `isize`
84 help: you can convert an `isize` to an `i16` and panic if the converted value doesn't fit
86 LL | id_i16(asize.try_into().unwrap());
87 | ++++++++++++++++++++
89 error[E0308]: mismatched types
90 --> $DIR/integer-literal-suffix-inference.rs:65:12
93 | ^^ expected `i32`, found `i8`
95 help: you can convert an `i8` to an `i32`
97 LL | id_i32(a8.into());
100 error[E0308]: mismatched types
101 --> $DIR/integer-literal-suffix-inference.rs:68:12
104 | ^^^ expected `i32`, found `i16`
106 help: you can convert an `i16` to an `i32`
108 LL | id_i32(a16.into());
111 error[E0308]: mismatched types
112 --> $DIR/integer-literal-suffix-inference.rs:72:12
115 | ^^^ expected `i32`, found `i64`
117 help: you can convert an `i64` to an `i32` and panic if the converted value doesn't fit
119 LL | id_i32(a64.try_into().unwrap());
120 | ++++++++++++++++++++
122 error[E0308]: mismatched types
123 --> $DIR/integer-literal-suffix-inference.rs:75:12
126 | ^^^^^ expected `i32`, found `isize`
128 help: you can convert an `isize` to an `i32` and panic if the converted value doesn't fit
130 LL | id_i32(asize.try_into().unwrap());
131 | ++++++++++++++++++++
133 error[E0308]: mismatched types
134 --> $DIR/integer-literal-suffix-inference.rs:79:12
137 | ^^ expected `i64`, found `i8`
139 help: you can convert an `i8` to an `i64`
141 LL | id_i64(a8.into());
144 error[E0308]: mismatched types
145 --> $DIR/integer-literal-suffix-inference.rs:82:12
148 | ^^^ expected `i64`, found `i16`
150 help: you can convert an `i16` to an `i64`
152 LL | id_i64(a16.into());
155 error[E0308]: mismatched types
156 --> $DIR/integer-literal-suffix-inference.rs:85:12
159 | ^^^ expected `i64`, found `i32`
161 help: you can convert an `i32` to an `i64`
163 LL | id_i64(a32.into());
166 error[E0308]: mismatched types
167 --> $DIR/integer-literal-suffix-inference.rs:89:12
170 | ^^^^^ expected `i64`, found `isize`
172 help: you can convert an `isize` to an `i64` and panic if the converted value doesn't fit
174 LL | id_i64(asize.try_into().unwrap());
175 | ++++++++++++++++++++
177 error[E0308]: mismatched types
178 --> $DIR/integer-literal-suffix-inference.rs:93:14
181 | ^^ expected `isize`, found `i8`
183 help: you can convert an `i8` to an `isize`
185 LL | id_isize(a8.into());
188 error[E0308]: mismatched types
189 --> $DIR/integer-literal-suffix-inference.rs:96:14
192 | ^^^ expected `isize`, found `i16`
194 help: you can convert an `i16` to an `isize`
196 LL | id_isize(a16.into());
199 error[E0308]: mismatched types
200 --> $DIR/integer-literal-suffix-inference.rs:99:14
203 | ^^^ expected `isize`, found `i32`
205 help: you can convert an `i32` to an `isize` and panic if the converted value doesn't fit
207 LL | id_isize(a32.try_into().unwrap());
208 | ++++++++++++++++++++
210 error[E0308]: mismatched types
211 --> $DIR/integer-literal-suffix-inference.rs:102:14
214 | ^^^ expected `isize`, found `i64`
216 help: you can convert an `i64` to an `isize` and panic if the converted value doesn't fit
218 LL | id_isize(a64.try_into().unwrap());
219 | ++++++++++++++++++++
221 error[E0308]: mismatched types
222 --> $DIR/integer-literal-suffix-inference.rs:108:11
225 | ^^^ expected `i8`, found `i16`
227 help: you can convert an `i16` to an `i8` and panic if the converted value doesn't fit
229 LL | id_i8(c16.try_into().unwrap());
230 | ++++++++++++++++++++
232 error[E0308]: mismatched types
233 --> $DIR/integer-literal-suffix-inference.rs:111:11
236 | ^^^ expected `i8`, found `i32`
238 help: you can convert an `i32` to an `i8` and panic if the converted value doesn't fit
240 LL | id_i8(c32.try_into().unwrap());
241 | ++++++++++++++++++++
243 error[E0308]: mismatched types
244 --> $DIR/integer-literal-suffix-inference.rs:114:11
247 | ^^^ expected `i8`, found `i64`
249 help: you can convert an `i64` to an `i8` and panic if the converted value doesn't fit
251 LL | id_i8(c64.try_into().unwrap());
252 | ++++++++++++++++++++
254 error[E0308]: mismatched types
255 --> $DIR/integer-literal-suffix-inference.rs:118:12
258 | ^^ expected `i16`, found `i8`
260 help: you can convert an `i8` to an `i16`
262 LL | id_i16(c8.into());
265 error[E0308]: mismatched types
266 --> $DIR/integer-literal-suffix-inference.rs:122:12
269 | ^^^ expected `i16`, found `i32`
271 help: you can convert an `i32` to an `i16` and panic if the converted value doesn't fit
273 LL | id_i16(c32.try_into().unwrap());
274 | ++++++++++++++++++++
276 error[E0308]: mismatched types
277 --> $DIR/integer-literal-suffix-inference.rs:125:12
280 | ^^^ expected `i16`, found `i64`
282 help: you can convert an `i64` to an `i16` and panic if the converted value doesn't fit
284 LL | id_i16(c64.try_into().unwrap());
285 | ++++++++++++++++++++
287 error[E0308]: mismatched types
288 --> $DIR/integer-literal-suffix-inference.rs:129:12
291 | ^^ expected `i32`, found `i8`
293 help: you can convert an `i8` to an `i32`
295 LL | id_i32(c8.into());
298 error[E0308]: mismatched types
299 --> $DIR/integer-literal-suffix-inference.rs:132:12
302 | ^^^ expected `i32`, found `i16`
304 help: you can convert an `i16` to an `i32`
306 LL | id_i32(c16.into());
309 error[E0308]: mismatched types
310 --> $DIR/integer-literal-suffix-inference.rs:136:12
313 | ^^^ expected `i32`, found `i64`
315 help: you can convert an `i64` to an `i32` and panic if the converted value doesn't fit
317 LL | id_i32(c64.try_into().unwrap());
318 | ++++++++++++++++++++
320 error[E0308]: mismatched types
321 --> $DIR/integer-literal-suffix-inference.rs:140:12
324 | ^^ expected `i64`, found `i8`
326 help: you can convert an `i8` to an `i64`
328 LL | id_i64(a8.into());
331 error[E0308]: mismatched types
332 --> $DIR/integer-literal-suffix-inference.rs:143:12
335 | ^^^ expected `i64`, found `i16`
337 help: you can convert an `i16` to an `i64`
339 LL | id_i64(a16.into());
342 error[E0308]: mismatched types
343 --> $DIR/integer-literal-suffix-inference.rs:146:12
346 | ^^^ expected `i64`, found `i32`
348 help: you can convert an `i32` to an `i64`
350 LL | id_i64(a32.into());
353 error[E0308]: mismatched types
354 --> $DIR/integer-literal-suffix-inference.rs:152:11
357 | ^^^ expected `u8`, found `u16`
359 help: you can convert a `u16` to a `u8` and panic if the converted value doesn't fit
361 LL | id_u8(b16.try_into().unwrap());
362 | ++++++++++++++++++++
364 error[E0308]: mismatched types
365 --> $DIR/integer-literal-suffix-inference.rs:155:11
368 | ^^^ expected `u8`, found `u32`
370 help: you can convert a `u32` to a `u8` and panic if the converted value doesn't fit
372 LL | id_u8(b32.try_into().unwrap());
373 | ++++++++++++++++++++
375 error[E0308]: mismatched types
376 --> $DIR/integer-literal-suffix-inference.rs:158:11
379 | ^^^ expected `u8`, found `u64`
381 help: you can convert a `u64` to a `u8` and panic if the converted value doesn't fit
383 LL | id_u8(b64.try_into().unwrap());
384 | ++++++++++++++++++++
386 error[E0308]: mismatched types
387 --> $DIR/integer-literal-suffix-inference.rs:161:11
390 | ^^^^^ expected `u8`, found `usize`
392 help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit
394 LL | id_u8(bsize.try_into().unwrap());
395 | ++++++++++++++++++++
397 error[E0308]: mismatched types
398 --> $DIR/integer-literal-suffix-inference.rs:165:12
401 | ^^ expected `u16`, found `u8`
403 help: you can convert a `u8` to a `u16`
405 LL | id_u16(b8.into());
408 error[E0308]: mismatched types
409 --> $DIR/integer-literal-suffix-inference.rs:169:12
412 | ^^^ expected `u16`, found `u32`
414 help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit
416 LL | id_u16(b32.try_into().unwrap());
417 | ++++++++++++++++++++
419 error[E0308]: mismatched types
420 --> $DIR/integer-literal-suffix-inference.rs:172:12
423 | ^^^ expected `u16`, found `u64`
425 help: you can convert a `u64` to a `u16` and panic if the converted value doesn't fit
427 LL | id_u16(b64.try_into().unwrap());
428 | ++++++++++++++++++++
430 error[E0308]: mismatched types
431 --> $DIR/integer-literal-suffix-inference.rs:175:12
434 | ^^^^^ expected `u16`, found `usize`
436 help: you can convert a `usize` to a `u16` and panic if the converted value doesn't fit
438 LL | id_u16(bsize.try_into().unwrap());
439 | ++++++++++++++++++++
441 error[E0308]: mismatched types
442 --> $DIR/integer-literal-suffix-inference.rs:179:12
445 | ^^ expected `u32`, found `u8`
447 help: you can convert a `u8` to a `u32`
449 LL | id_u32(b8.into());
452 error[E0308]: mismatched types
453 --> $DIR/integer-literal-suffix-inference.rs:182:12
456 | ^^^ expected `u32`, found `u16`
458 help: you can convert a `u16` to a `u32`
460 LL | id_u32(b16.into());
463 error[E0308]: mismatched types
464 --> $DIR/integer-literal-suffix-inference.rs:186:12
467 | ^^^ expected `u32`, found `u64`
469 help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
471 LL | id_u32(b64.try_into().unwrap());
472 | ++++++++++++++++++++
474 error[E0308]: mismatched types
475 --> $DIR/integer-literal-suffix-inference.rs:189:12
478 | ^^^^^ expected `u32`, found `usize`
480 help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
482 LL | id_u32(bsize.try_into().unwrap());
483 | ++++++++++++++++++++
485 error[E0308]: mismatched types
486 --> $DIR/integer-literal-suffix-inference.rs:193:12
489 | ^^ expected `u64`, found `u8`
491 help: you can convert a `u8` to a `u64`
493 LL | id_u64(b8.into());
496 error[E0308]: mismatched types
497 --> $DIR/integer-literal-suffix-inference.rs:196:12
500 | ^^^ expected `u64`, found `u16`
502 help: you can convert a `u16` to a `u64`
504 LL | id_u64(b16.into());
507 error[E0308]: mismatched types
508 --> $DIR/integer-literal-suffix-inference.rs:199:12
511 | ^^^ expected `u64`, found `u32`
513 help: you can convert a `u32` to a `u64`
515 LL | id_u64(b32.into());
518 error[E0308]: mismatched types
519 --> $DIR/integer-literal-suffix-inference.rs:203:12
522 | ^^^^^ expected `u64`, found `usize`
524 help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit
526 LL | id_u64(bsize.try_into().unwrap());
527 | ++++++++++++++++++++
529 error[E0308]: mismatched types
530 --> $DIR/integer-literal-suffix-inference.rs:207:14
533 | ^^ expected `usize`, found `u8`
535 help: you can convert a `u8` to a `usize`
537 LL | id_usize(b8.into());
540 error[E0308]: mismatched types
541 --> $DIR/integer-literal-suffix-inference.rs:210:14
544 | ^^^ expected `usize`, found `u16`
546 help: you can convert a `u16` to a `usize`
548 LL | id_usize(b16.into());
551 error[E0308]: mismatched types
552 --> $DIR/integer-literal-suffix-inference.rs:213:14
555 | ^^^ expected `usize`, found `u32`
557 help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
559 LL | id_usize(b32.try_into().unwrap());
560 | ++++++++++++++++++++
562 error[E0308]: mismatched types
563 --> $DIR/integer-literal-suffix-inference.rs:216:14
566 | ^^^ expected `usize`, found `u64`
568 help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
570 LL | id_usize(b64.try_into().unwrap());
571 | ++++++++++++++++++++
573 error: aborting due to 52 previous errors
575 For more information about this error, try `rustc --explain E0308`.