1 error[E0308]: mismatched types
2 --> $DIR/numeric-cast.rs:23:18
4 LL | foo::<usize>(x_u64);
5 | ^^^^^ expected `usize`, found `u64`
7 help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
9 LL | foo::<usize>(x_u64.try_into().unwrap());
10 | ++++++++++++++++++++
12 error[E0308]: mismatched types
13 --> $DIR/numeric-cast.rs:25:18
15 LL | foo::<usize>(x_u32);
16 | ^^^^^ expected `usize`, found `u32`
18 help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
20 LL | foo::<usize>(x_u32.try_into().unwrap());
21 | ++++++++++++++++++++
23 error[E0308]: mismatched types
24 --> $DIR/numeric-cast.rs:27:18
26 LL | foo::<usize>(x_u16);
27 | ^^^^^ expected `usize`, found `u16`
29 help: you can convert a `u16` to a `usize`
31 LL | foo::<usize>(x_u16.into());
34 error[E0308]: mismatched types
35 --> $DIR/numeric-cast.rs:29:18
37 LL | foo::<usize>(x_u8);
38 | ^^^^ expected `usize`, found `u8`
40 help: you can convert a `u8` to a `usize`
42 LL | foo::<usize>(x_u8.into());
45 error[E0308]: mismatched types
46 --> $DIR/numeric-cast.rs:31:18
48 LL | foo::<usize>(x_isize);
49 | ^^^^^^^ expected `usize`, found `isize`
51 help: you can convert an `isize` to a `usize` and panic if the converted value doesn't fit
53 LL | foo::<usize>(x_isize.try_into().unwrap());
54 | ++++++++++++++++++++
56 error[E0308]: mismatched types
57 --> $DIR/numeric-cast.rs:33:18
59 LL | foo::<usize>(x_i64);
60 | ^^^^^ expected `usize`, found `i64`
62 help: you can convert an `i64` to a `usize` and panic if the converted value doesn't fit
64 LL | foo::<usize>(x_i64.try_into().unwrap());
65 | ++++++++++++++++++++
67 error[E0308]: mismatched types
68 --> $DIR/numeric-cast.rs:35:18
70 LL | foo::<usize>(x_i32);
71 | ^^^^^ expected `usize`, found `i32`
73 help: you can convert an `i32` to a `usize` and panic if the converted value doesn't fit
75 LL | foo::<usize>(x_i32.try_into().unwrap());
76 | ++++++++++++++++++++
78 error[E0308]: mismatched types
79 --> $DIR/numeric-cast.rs:37:18
81 LL | foo::<usize>(x_i16);
82 | ^^^^^ expected `usize`, found `i16`
84 help: you can convert an `i16` to a `usize` and panic if the converted value doesn't fit
86 LL | foo::<usize>(x_i16.try_into().unwrap());
87 | ++++++++++++++++++++
89 error[E0308]: mismatched types
90 --> $DIR/numeric-cast.rs:39:18
92 LL | foo::<usize>(x_i8);
93 | ^^^^ expected `usize`, found `i8`
95 help: you can convert an `i8` to a `usize` and panic if the converted value doesn't fit
97 LL | foo::<usize>(x_i8.try_into().unwrap());
98 | ++++++++++++++++++++
100 error[E0308]: mismatched types
101 --> $DIR/numeric-cast.rs:44:18
103 LL | foo::<isize>(x_usize);
104 | ^^^^^^^ expected `isize`, found `usize`
106 help: you can convert a `usize` to an `isize` and panic if the converted value doesn't fit
108 LL | foo::<isize>(x_usize.try_into().unwrap());
109 | ++++++++++++++++++++
111 error[E0308]: mismatched types
112 --> $DIR/numeric-cast.rs:46:18
114 LL | foo::<isize>(x_u64);
115 | ^^^^^ expected `isize`, found `u64`
117 help: you can convert a `u64` to an `isize` and panic if the converted value doesn't fit
119 LL | foo::<isize>(x_u64.try_into().unwrap());
120 | ++++++++++++++++++++
122 error[E0308]: mismatched types
123 --> $DIR/numeric-cast.rs:48:18
125 LL | foo::<isize>(x_u32);
126 | ^^^^^ expected `isize`, found `u32`
128 help: you can convert a `u32` to an `isize` and panic if the converted value doesn't fit
130 LL | foo::<isize>(x_u32.try_into().unwrap());
131 | ++++++++++++++++++++
133 error[E0308]: mismatched types
134 --> $DIR/numeric-cast.rs:50:18
136 LL | foo::<isize>(x_u16);
137 | ^^^^^ expected `isize`, found `u16`
139 help: you can convert a `u16` to an `isize` and panic if the converted value doesn't fit
141 LL | foo::<isize>(x_u16.try_into().unwrap());
142 | ++++++++++++++++++++
144 error[E0308]: mismatched types
145 --> $DIR/numeric-cast.rs:52:18
147 LL | foo::<isize>(x_u8);
148 | ^^^^ expected `isize`, found `u8`
150 help: you can convert a `u8` to an `isize`
152 LL | foo::<isize>(x_u8.into());
155 error[E0308]: mismatched types
156 --> $DIR/numeric-cast.rs:55:18
158 LL | foo::<isize>(x_i64);
159 | ^^^^^ expected `isize`, found `i64`
161 help: you can convert an `i64` to an `isize` and panic if the converted value doesn't fit
163 LL | foo::<isize>(x_i64.try_into().unwrap());
164 | ++++++++++++++++++++
166 error[E0308]: mismatched types
167 --> $DIR/numeric-cast.rs:57:18
169 LL | foo::<isize>(x_i32);
170 | ^^^^^ expected `isize`, found `i32`
172 help: you can convert an `i32` to an `isize` and panic if the converted value doesn't fit
174 LL | foo::<isize>(x_i32.try_into().unwrap());
175 | ++++++++++++++++++++
177 error[E0308]: mismatched types
178 --> $DIR/numeric-cast.rs:59:18
180 LL | foo::<isize>(x_i16);
181 | ^^^^^ expected `isize`, found `i16`
183 help: you can convert an `i16` to an `isize`
185 LL | foo::<isize>(x_i16.into());
188 error[E0308]: mismatched types
189 --> $DIR/numeric-cast.rs:61:18
191 LL | foo::<isize>(x_i8);
192 | ^^^^ expected `isize`, found `i8`
194 help: you can convert an `i8` to an `isize`
196 LL | foo::<isize>(x_i8.into());
199 error[E0308]: mismatched types
200 --> $DIR/numeric-cast.rs:66:16
202 LL | foo::<u64>(x_usize);
203 | ^^^^^^^ expected `u64`, found `usize`
205 help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit
207 LL | foo::<u64>(x_usize.try_into().unwrap());
208 | ++++++++++++++++++++
210 error[E0308]: mismatched types
211 --> $DIR/numeric-cast.rs:69:16
213 LL | foo::<u64>(x_u32);
214 | ^^^^^ expected `u64`, found `u32`
216 help: you can convert a `u32` to a `u64`
218 LL | foo::<u64>(x_u32.into());
221 error[E0308]: mismatched types
222 --> $DIR/numeric-cast.rs:71:16
224 LL | foo::<u64>(x_u16);
225 | ^^^^^ expected `u64`, found `u16`
227 help: you can convert a `u16` to a `u64`
229 LL | foo::<u64>(x_u16.into());
232 error[E0308]: mismatched types
233 --> $DIR/numeric-cast.rs:73:16
235 LL | foo::<u64>(x_u8);
236 | ^^^^ expected `u64`, found `u8`
238 help: you can convert a `u8` to a `u64`
240 LL | foo::<u64>(x_u8.into());
243 error[E0308]: mismatched types
244 --> $DIR/numeric-cast.rs:75:16
246 LL | foo::<u64>(x_isize);
247 | ^^^^^^^ expected `u64`, found `isize`
249 help: you can convert an `isize` to a `u64` and panic if the converted value doesn't fit
251 LL | foo::<u64>(x_isize.try_into().unwrap());
252 | ++++++++++++++++++++
254 error[E0308]: mismatched types
255 --> $DIR/numeric-cast.rs:77:16
257 LL | foo::<u64>(x_i64);
258 | ^^^^^ expected `u64`, found `i64`
260 help: you can convert an `i64` to a `u64` and panic if the converted value doesn't fit
262 LL | foo::<u64>(x_i64.try_into().unwrap());
263 | ++++++++++++++++++++
265 error[E0308]: mismatched types
266 --> $DIR/numeric-cast.rs:79:16
268 LL | foo::<u64>(x_i32);
269 | ^^^^^ expected `u64`, found `i32`
271 help: you can convert an `i32` to a `u64` and panic if the converted value doesn't fit
273 LL | foo::<u64>(x_i32.try_into().unwrap());
274 | ++++++++++++++++++++
276 error[E0308]: mismatched types
277 --> $DIR/numeric-cast.rs:81:16
279 LL | foo::<u64>(x_i16);
280 | ^^^^^ expected `u64`, found `i16`
282 help: you can convert an `i16` to a `u64` and panic if the converted value doesn't fit
284 LL | foo::<u64>(x_i16.try_into().unwrap());
285 | ++++++++++++++++++++
287 error[E0308]: mismatched types
288 --> $DIR/numeric-cast.rs:83:16
290 LL | foo::<u64>(x_i8);
291 | ^^^^ expected `u64`, found `i8`
293 help: you can convert an `i8` to a `u64` and panic if the converted value doesn't fit
295 LL | foo::<u64>(x_i8.try_into().unwrap());
296 | ++++++++++++++++++++
298 error[E0308]: mismatched types
299 --> $DIR/numeric-cast.rs:88:16
301 LL | foo::<i64>(x_usize);
302 | ^^^^^^^ expected `i64`, found `usize`
304 help: you can convert a `usize` to an `i64` and panic if the converted value doesn't fit
306 LL | foo::<i64>(x_usize.try_into().unwrap());
307 | ++++++++++++++++++++
309 error[E0308]: mismatched types
310 --> $DIR/numeric-cast.rs:90:16
312 LL | foo::<i64>(x_u64);
313 | ^^^^^ expected `i64`, found `u64`
315 help: you can convert a `u64` to an `i64` and panic if the converted value doesn't fit
317 LL | foo::<i64>(x_u64.try_into().unwrap());
318 | ++++++++++++++++++++
320 error[E0308]: mismatched types
321 --> $DIR/numeric-cast.rs:92:16
323 LL | foo::<i64>(x_u32);
324 | ^^^^^ expected `i64`, found `u32`
326 help: you can convert a `u32` to an `i64`
328 LL | foo::<i64>(x_u32.into());
331 error[E0308]: mismatched types
332 --> $DIR/numeric-cast.rs:94:16
334 LL | foo::<i64>(x_u16);
335 | ^^^^^ expected `i64`, found `u16`
337 help: you can convert a `u16` to an `i64`
339 LL | foo::<i64>(x_u16.into());
342 error[E0308]: mismatched types
343 --> $DIR/numeric-cast.rs:96:16
345 LL | foo::<i64>(x_u8);
346 | ^^^^ expected `i64`, found `u8`
348 help: you can convert a `u8` to an `i64`
350 LL | foo::<i64>(x_u8.into());
353 error[E0308]: mismatched types
354 --> $DIR/numeric-cast.rs:98:16
356 LL | foo::<i64>(x_isize);
357 | ^^^^^^^ expected `i64`, found `isize`
359 help: you can convert an `isize` to an `i64` and panic if the converted value doesn't fit
361 LL | foo::<i64>(x_isize.try_into().unwrap());
362 | ++++++++++++++++++++
364 error[E0308]: mismatched types
365 --> $DIR/numeric-cast.rs:101:16
367 LL | foo::<i64>(x_i32);
368 | ^^^^^ expected `i64`, found `i32`
370 help: you can convert an `i32` to an `i64`
372 LL | foo::<i64>(x_i32.into());
375 error[E0308]: mismatched types
376 --> $DIR/numeric-cast.rs:103:16
378 LL | foo::<i64>(x_i16);
379 | ^^^^^ expected `i64`, found `i16`
381 help: you can convert an `i16` to an `i64`
383 LL | foo::<i64>(x_i16.into());
386 error[E0308]: mismatched types
387 --> $DIR/numeric-cast.rs:105:16
389 LL | foo::<i64>(x_i8);
390 | ^^^^ expected `i64`, found `i8`
392 help: you can convert an `i8` to an `i64`
394 LL | foo::<i64>(x_i8.into());
397 error[E0308]: mismatched types
398 --> $DIR/numeric-cast.rs:110:16
400 LL | foo::<u32>(x_usize);
401 | ^^^^^^^ expected `u32`, found `usize`
403 help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
405 LL | foo::<u32>(x_usize.try_into().unwrap());
406 | ++++++++++++++++++++
408 error[E0308]: mismatched types
409 --> $DIR/numeric-cast.rs:112:16
411 LL | foo::<u32>(x_u64);
412 | ^^^^^ expected `u32`, found `u64`
414 help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
416 LL | foo::<u32>(x_u64.try_into().unwrap());
417 | ++++++++++++++++++++
419 error[E0308]: mismatched types
420 --> $DIR/numeric-cast.rs:115:16
422 LL | foo::<u32>(x_u16);
423 | ^^^^^ expected `u32`, found `u16`
425 help: you can convert a `u16` to a `u32`
427 LL | foo::<u32>(x_u16.into());
430 error[E0308]: mismatched types
431 --> $DIR/numeric-cast.rs:117:16
433 LL | foo::<u32>(x_u8);
434 | ^^^^ expected `u32`, found `u8`
436 help: you can convert a `u8` to a `u32`
438 LL | foo::<u32>(x_u8.into());
441 error[E0308]: mismatched types
442 --> $DIR/numeric-cast.rs:119:16
444 LL | foo::<u32>(x_isize);
445 | ^^^^^^^ expected `u32`, found `isize`
447 help: you can convert an `isize` to a `u32` and panic if the converted value doesn't fit
449 LL | foo::<u32>(x_isize.try_into().unwrap());
450 | ++++++++++++++++++++
452 error[E0308]: mismatched types
453 --> $DIR/numeric-cast.rs:121:16
455 LL | foo::<u32>(x_i64);
456 | ^^^^^ expected `u32`, found `i64`
458 help: you can convert an `i64` to a `u32` and panic if the converted value doesn't fit
460 LL | foo::<u32>(x_i64.try_into().unwrap());
461 | ++++++++++++++++++++
463 error[E0308]: mismatched types
464 --> $DIR/numeric-cast.rs:123:16
466 LL | foo::<u32>(x_i32);
467 | ^^^^^ expected `u32`, found `i32`
469 help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit
471 LL | foo::<u32>(x_i32.try_into().unwrap());
472 | ++++++++++++++++++++
474 error[E0308]: mismatched types
475 --> $DIR/numeric-cast.rs:125:16
477 LL | foo::<u32>(x_i16);
478 | ^^^^^ expected `u32`, found `i16`
480 help: you can convert an `i16` to a `u32` and panic if the converted value doesn't fit
482 LL | foo::<u32>(x_i16.try_into().unwrap());
483 | ++++++++++++++++++++
485 error[E0308]: mismatched types
486 --> $DIR/numeric-cast.rs:127:16
488 LL | foo::<u32>(x_i8);
489 | ^^^^ expected `u32`, found `i8`
491 help: you can convert an `i8` to a `u32` and panic if the converted value doesn't fit
493 LL | foo::<u32>(x_i8.try_into().unwrap());
494 | ++++++++++++++++++++
496 error[E0308]: mismatched types
497 --> $DIR/numeric-cast.rs:132:16
499 LL | foo::<i32>(x_usize);
500 | ^^^^^^^ expected `i32`, found `usize`
502 help: you can convert a `usize` to an `i32` and panic if the converted value doesn't fit
504 LL | foo::<i32>(x_usize.try_into().unwrap());
505 | ++++++++++++++++++++
507 error[E0308]: mismatched types
508 --> $DIR/numeric-cast.rs:134:16
510 LL | foo::<i32>(x_u64);
511 | ^^^^^ expected `i32`, found `u64`
513 help: you can convert a `u64` to an `i32` and panic if the converted value doesn't fit
515 LL | foo::<i32>(x_u64.try_into().unwrap());
516 | ++++++++++++++++++++
518 error[E0308]: mismatched types
519 --> $DIR/numeric-cast.rs:136:16
521 LL | foo::<i32>(x_u32);
522 | ^^^^^ expected `i32`, found `u32`
524 help: you can convert a `u32` to an `i32` and panic if the converted value doesn't fit
526 LL | foo::<i32>(x_u32.try_into().unwrap());
527 | ++++++++++++++++++++
529 error[E0308]: mismatched types
530 --> $DIR/numeric-cast.rs:138:16
532 LL | foo::<i32>(x_u16);
533 | ^^^^^ expected `i32`, found `u16`
535 help: you can convert a `u16` to an `i32`
537 LL | foo::<i32>(x_u16.into());
540 error[E0308]: mismatched types
541 --> $DIR/numeric-cast.rs:140:16
543 LL | foo::<i32>(x_u8);
544 | ^^^^ expected `i32`, found `u8`
546 help: you can convert a `u8` to an `i32`
548 LL | foo::<i32>(x_u8.into());
551 error[E0308]: mismatched types
552 --> $DIR/numeric-cast.rs:142:16
554 LL | foo::<i32>(x_isize);
555 | ^^^^^^^ expected `i32`, found `isize`
557 help: you can convert an `isize` to an `i32` and panic if the converted value doesn't fit
559 LL | foo::<i32>(x_isize.try_into().unwrap());
560 | ++++++++++++++++++++
562 error[E0308]: mismatched types
563 --> $DIR/numeric-cast.rs:144:16
565 LL | foo::<i32>(x_i64);
566 | ^^^^^ expected `i32`, found `i64`
568 help: you can convert an `i64` to an `i32` and panic if the converted value doesn't fit
570 LL | foo::<i32>(x_i64.try_into().unwrap());
571 | ++++++++++++++++++++
573 error[E0308]: mismatched types
574 --> $DIR/numeric-cast.rs:147:16
576 LL | foo::<i32>(x_i16);
577 | ^^^^^ expected `i32`, found `i16`
579 help: you can convert an `i16` to an `i32`
581 LL | foo::<i32>(x_i16.into());
584 error[E0308]: mismatched types
585 --> $DIR/numeric-cast.rs:149:16
587 LL | foo::<i32>(x_i8);
588 | ^^^^ expected `i32`, found `i8`
590 help: you can convert an `i8` to an `i32`
592 LL | foo::<i32>(x_i8.into());
595 error[E0308]: mismatched types
596 --> $DIR/numeric-cast.rs:154:16
598 LL | foo::<u16>(x_usize);
599 | ^^^^^^^ expected `u16`, found `usize`
601 help: you can convert a `usize` to a `u16` and panic if the converted value doesn't fit
603 LL | foo::<u16>(x_usize.try_into().unwrap());
604 | ++++++++++++++++++++
606 error[E0308]: mismatched types
607 --> $DIR/numeric-cast.rs:156:16
609 LL | foo::<u16>(x_u64);
610 | ^^^^^ expected `u16`, found `u64`
612 help: you can convert a `u64` to a `u16` and panic if the converted value doesn't fit
614 LL | foo::<u16>(x_u64.try_into().unwrap());
615 | ++++++++++++++++++++
617 error[E0308]: mismatched types
618 --> $DIR/numeric-cast.rs:158:16
620 LL | foo::<u16>(x_u32);
621 | ^^^^^ expected `u16`, found `u32`
623 help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit
625 LL | foo::<u16>(x_u32.try_into().unwrap());
626 | ++++++++++++++++++++
628 error[E0308]: mismatched types
629 --> $DIR/numeric-cast.rs:161:16
631 LL | foo::<u16>(x_u8);
632 | ^^^^ expected `u16`, found `u8`
634 help: you can convert a `u8` to a `u16`
636 LL | foo::<u16>(x_u8.into());
639 error[E0308]: mismatched types
640 --> $DIR/numeric-cast.rs:163:16
642 LL | foo::<u16>(x_isize);
643 | ^^^^^^^ expected `u16`, found `isize`
645 help: you can convert an `isize` to a `u16` and panic if the converted value doesn't fit
647 LL | foo::<u16>(x_isize.try_into().unwrap());
648 | ++++++++++++++++++++
650 error[E0308]: mismatched types
651 --> $DIR/numeric-cast.rs:165:16
653 LL | foo::<u16>(x_i64);
654 | ^^^^^ expected `u16`, found `i64`
656 help: you can convert an `i64` to a `u16` and panic if the converted value doesn't fit
658 LL | foo::<u16>(x_i64.try_into().unwrap());
659 | ++++++++++++++++++++
661 error[E0308]: mismatched types
662 --> $DIR/numeric-cast.rs:167:16
664 LL | foo::<u16>(x_i32);
665 | ^^^^^ expected `u16`, found `i32`
667 help: you can convert an `i32` to a `u16` and panic if the converted value doesn't fit
669 LL | foo::<u16>(x_i32.try_into().unwrap());
670 | ++++++++++++++++++++
672 error[E0308]: mismatched types
673 --> $DIR/numeric-cast.rs:169:16
675 LL | foo::<u16>(x_i16);
676 | ^^^^^ expected `u16`, found `i16`
678 help: you can convert an `i16` to a `u16` and panic if the converted value doesn't fit
680 LL | foo::<u16>(x_i16.try_into().unwrap());
681 | ++++++++++++++++++++
683 error[E0308]: mismatched types
684 --> $DIR/numeric-cast.rs:171:16
686 LL | foo::<u16>(x_i8);
687 | ^^^^ expected `u16`, found `i8`
689 help: you can convert an `i8` to a `u16` and panic if the converted value doesn't fit
691 LL | foo::<u16>(x_i8.try_into().unwrap());
692 | ++++++++++++++++++++
694 error[E0308]: mismatched types
695 --> $DIR/numeric-cast.rs:176:16
697 LL | foo::<i16>(x_usize);
698 | ^^^^^^^ expected `i16`, found `usize`
700 help: you can convert a `usize` to an `i16` and panic if the converted value doesn't fit
702 LL | foo::<i16>(x_usize.try_into().unwrap());
703 | ++++++++++++++++++++
705 error[E0308]: mismatched types
706 --> $DIR/numeric-cast.rs:178:16
708 LL | foo::<i16>(x_u64);
709 | ^^^^^ expected `i16`, found `u64`
711 help: you can convert a `u64` to an `i16` and panic if the converted value doesn't fit
713 LL | foo::<i16>(x_u64.try_into().unwrap());
714 | ++++++++++++++++++++
716 error[E0308]: mismatched types
717 --> $DIR/numeric-cast.rs:180:16
719 LL | foo::<i16>(x_u32);
720 | ^^^^^ expected `i16`, found `u32`
722 help: you can convert a `u32` to an `i16` and panic if the converted value doesn't fit
724 LL | foo::<i16>(x_u32.try_into().unwrap());
725 | ++++++++++++++++++++
727 error[E0308]: mismatched types
728 --> $DIR/numeric-cast.rs:182:16
730 LL | foo::<i16>(x_u16);
731 | ^^^^^ expected `i16`, found `u16`
733 help: you can convert a `u16` to an `i16` and panic if the converted value doesn't fit
735 LL | foo::<i16>(x_u16.try_into().unwrap());
736 | ++++++++++++++++++++
738 error[E0308]: mismatched types
739 --> $DIR/numeric-cast.rs:184:16
741 LL | foo::<i16>(x_u8);
742 | ^^^^ expected `i16`, found `u8`
744 help: you can convert a `u8` to an `i16`
746 LL | foo::<i16>(x_u8.into());
749 error[E0308]: mismatched types
750 --> $DIR/numeric-cast.rs:186:16
752 LL | foo::<i16>(x_isize);
753 | ^^^^^^^ expected `i16`, found `isize`
755 help: you can convert an `isize` to an `i16` and panic if the converted value doesn't fit
757 LL | foo::<i16>(x_isize.try_into().unwrap());
758 | ++++++++++++++++++++
760 error[E0308]: mismatched types
761 --> $DIR/numeric-cast.rs:188:16
763 LL | foo::<i16>(x_i64);
764 | ^^^^^ expected `i16`, found `i64`
766 help: you can convert an `i64` to an `i16` and panic if the converted value doesn't fit
768 LL | foo::<i16>(x_i64.try_into().unwrap());
769 | ++++++++++++++++++++
771 error[E0308]: mismatched types
772 --> $DIR/numeric-cast.rs:190:16
774 LL | foo::<i16>(x_i32);
775 | ^^^^^ expected `i16`, found `i32`
777 help: you can convert an `i32` to an `i16` and panic if the converted value doesn't fit
779 LL | foo::<i16>(x_i32.try_into().unwrap());
780 | ++++++++++++++++++++
782 error[E0308]: mismatched types
783 --> $DIR/numeric-cast.rs:193:16
785 LL | foo::<i16>(x_i8);
786 | ^^^^ expected `i16`, found `i8`
788 help: you can convert an `i8` to an `i16`
790 LL | foo::<i16>(x_i8.into());
793 error[E0308]: mismatched types
794 --> $DIR/numeric-cast.rs:198:15
796 LL | foo::<u8>(x_usize);
797 | ^^^^^^^ expected `u8`, found `usize`
799 help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit
801 LL | foo::<u8>(x_usize.try_into().unwrap());
802 | ++++++++++++++++++++
804 error[E0308]: mismatched types
805 --> $DIR/numeric-cast.rs:200:15
807 LL | foo::<u8>(x_u64);
808 | ^^^^^ expected `u8`, found `u64`
810 help: you can convert a `u64` to a `u8` and panic if the converted value doesn't fit
812 LL | foo::<u8>(x_u64.try_into().unwrap());
813 | ++++++++++++++++++++
815 error[E0308]: mismatched types
816 --> $DIR/numeric-cast.rs:202:15
818 LL | foo::<u8>(x_u32);
819 | ^^^^^ expected `u8`, found `u32`
821 help: you can convert a `u32` to a `u8` and panic if the converted value doesn't fit
823 LL | foo::<u8>(x_u32.try_into().unwrap());
824 | ++++++++++++++++++++
826 error[E0308]: mismatched types
827 --> $DIR/numeric-cast.rs:204:15
829 LL | foo::<u8>(x_u16);
830 | ^^^^^ expected `u8`, found `u16`
832 help: you can convert a `u16` to a `u8` and panic if the converted value doesn't fit
834 LL | foo::<u8>(x_u16.try_into().unwrap());
835 | ++++++++++++++++++++
837 error[E0308]: mismatched types
838 --> $DIR/numeric-cast.rs:207:15
840 LL | foo::<u8>(x_isize);
841 | ^^^^^^^ expected `u8`, found `isize`
843 help: you can convert an `isize` to a `u8` and panic if the converted value doesn't fit
845 LL | foo::<u8>(x_isize.try_into().unwrap());
846 | ++++++++++++++++++++
848 error[E0308]: mismatched types
849 --> $DIR/numeric-cast.rs:209:15
851 LL | foo::<u8>(x_i64);
852 | ^^^^^ expected `u8`, found `i64`
854 help: you can convert an `i64` to a `u8` and panic if the converted value doesn't fit
856 LL | foo::<u8>(x_i64.try_into().unwrap());
857 | ++++++++++++++++++++
859 error[E0308]: mismatched types
860 --> $DIR/numeric-cast.rs:211:15
862 LL | foo::<u8>(x_i32);
863 | ^^^^^ expected `u8`, found `i32`
865 help: you can convert an `i32` to a `u8` and panic if the converted value doesn't fit
867 LL | foo::<u8>(x_i32.try_into().unwrap());
868 | ++++++++++++++++++++
870 error[E0308]: mismatched types
871 --> $DIR/numeric-cast.rs:213:15
873 LL | foo::<u8>(x_i16);
874 | ^^^^^ expected `u8`, found `i16`
876 help: you can convert an `i16` to a `u8` and panic if the converted value doesn't fit
878 LL | foo::<u8>(x_i16.try_into().unwrap());
879 | ++++++++++++++++++++
881 error[E0308]: mismatched types
882 --> $DIR/numeric-cast.rs:215:15
884 LL | foo::<u8>(x_i8);
885 | ^^^^ expected `u8`, found `i8`
887 help: you can convert an `i8` to a `u8` and panic if the converted value doesn't fit
889 LL | foo::<u8>(x_i8.try_into().unwrap());
890 | ++++++++++++++++++++
892 error[E0308]: mismatched types
893 --> $DIR/numeric-cast.rs:220:15
895 LL | foo::<i8>(x_usize);
896 | ^^^^^^^ expected `i8`, found `usize`
898 help: you can convert a `usize` to an `i8` and panic if the converted value doesn't fit
900 LL | foo::<i8>(x_usize.try_into().unwrap());
901 | ++++++++++++++++++++
903 error[E0308]: mismatched types
904 --> $DIR/numeric-cast.rs:222:15
906 LL | foo::<i8>(x_u64);
907 | ^^^^^ expected `i8`, found `u64`
909 help: you can convert a `u64` to an `i8` and panic if the converted value doesn't fit
911 LL | foo::<i8>(x_u64.try_into().unwrap());
912 | ++++++++++++++++++++
914 error[E0308]: mismatched types
915 --> $DIR/numeric-cast.rs:224:15
917 LL | foo::<i8>(x_u32);
918 | ^^^^^ expected `i8`, found `u32`
920 help: you can convert a `u32` to an `i8` and panic if the converted value doesn't fit
922 LL | foo::<i8>(x_u32.try_into().unwrap());
923 | ++++++++++++++++++++
925 error[E0308]: mismatched types
926 --> $DIR/numeric-cast.rs:226:15
928 LL | foo::<i8>(x_u16);
929 | ^^^^^ expected `i8`, found `u16`
931 help: you can convert a `u16` to an `i8` and panic if the converted value doesn't fit
933 LL | foo::<i8>(x_u16.try_into().unwrap());
934 | ++++++++++++++++++++
936 error[E0308]: mismatched types
937 --> $DIR/numeric-cast.rs:228:15
939 LL | foo::<i8>(x_u8);
940 | ^^^^ expected `i8`, found `u8`
942 help: you can convert a `u8` to an `i8` and panic if the converted value doesn't fit
944 LL | foo::<i8>(x_u8.try_into().unwrap());
945 | ++++++++++++++++++++
947 error[E0308]: mismatched types
948 --> $DIR/numeric-cast.rs:230:15
950 LL | foo::<i8>(x_isize);
951 | ^^^^^^^ expected `i8`, found `isize`
953 help: you can convert an `isize` to an `i8` and panic if the converted value doesn't fit
955 LL | foo::<i8>(x_isize.try_into().unwrap());
956 | ++++++++++++++++++++
958 error[E0308]: mismatched types
959 --> $DIR/numeric-cast.rs:232:15
961 LL | foo::<i8>(x_i64);
962 | ^^^^^ expected `i8`, found `i64`
964 help: you can convert an `i64` to an `i8` and panic if the converted value doesn't fit
966 LL | foo::<i8>(x_i64.try_into().unwrap());
967 | ++++++++++++++++++++
969 error[E0308]: mismatched types
970 --> $DIR/numeric-cast.rs:234:15
972 LL | foo::<i8>(x_i32);
973 | ^^^^^ expected `i8`, found `i32`
975 help: you can convert an `i32` to an `i8` and panic if the converted value doesn't fit
977 LL | foo::<i8>(x_i32.try_into().unwrap());
978 | ++++++++++++++++++++
980 error[E0308]: mismatched types
981 --> $DIR/numeric-cast.rs:236:15
983 LL | foo::<i8>(x_i16);
984 | ^^^^^ expected `i8`, found `i16`
986 help: you can convert an `i16` to an `i8` and panic if the converted value doesn't fit
988 LL | foo::<i8>(x_i16.try_into().unwrap());
989 | ++++++++++++++++++++
991 error[E0308]: mismatched types
992 --> $DIR/numeric-cast.rs:242:16
994 LL | foo::<f64>(x_usize);
995 | ^^^^^^^ expected `f64`, found `usize`
997 help: you can cast a `usize` to an `f64`, producing the floating point representation of the integer, rounded if necessary
999 LL | foo::<f64>(x_usize as f64);
1002 error[E0308]: mismatched types
1003 --> $DIR/numeric-cast.rs:244:16
1005 LL | foo::<f64>(x_u64);
1006 | ^^^^^ expected `f64`, found `u64`
1008 help: you can cast a `u64` to an `f64`, producing the floating point representation of the integer, rounded if necessary
1010 LL | foo::<f64>(x_u64 as f64);
1013 error[E0308]: mismatched types
1014 --> $DIR/numeric-cast.rs:246:16
1016 LL | foo::<f64>(x_u32);
1017 | ^^^^^ expected `f64`, found `u32`
1019 help: you can convert a `u32` to an `f64`, producing the floating point representation of the integer
1021 LL | foo::<f64>(x_u32.into());
1024 error[E0308]: mismatched types
1025 --> $DIR/numeric-cast.rs:248:16
1027 LL | foo::<f64>(x_u16);
1028 | ^^^^^ expected `f64`, found `u16`
1030 help: you can convert a `u16` to an `f64`, producing the floating point representation of the integer
1032 LL | foo::<f64>(x_u16.into());
1035 error[E0308]: mismatched types
1036 --> $DIR/numeric-cast.rs:250:16
1038 LL | foo::<f64>(x_u8);
1039 | ^^^^ expected `f64`, found `u8`
1041 help: you can convert a `u8` to an `f64`, producing the floating point representation of the integer
1043 LL | foo::<f64>(x_u8.into());
1046 error[E0308]: mismatched types
1047 --> $DIR/numeric-cast.rs:252:16
1049 LL | foo::<f64>(x_isize);
1050 | ^^^^^^^ expected `f64`, found `isize`
1052 help: you can convert an `isize` to an `f64`, producing the floating point representation of the integer, rounded if necessary
1054 LL | foo::<f64>(x_isize as f64);
1057 error[E0308]: mismatched types
1058 --> $DIR/numeric-cast.rs:254:16
1060 LL | foo::<f64>(x_i64);
1061 | ^^^^^ expected `f64`, found `i64`
1063 help: you can convert an `i64` to an `f64`, producing the floating point representation of the integer, rounded if necessary
1065 LL | foo::<f64>(x_i64 as f64);
1068 error[E0308]: mismatched types
1069 --> $DIR/numeric-cast.rs:256:16
1071 LL | foo::<f64>(x_i32);
1072 | ^^^^^ expected `f64`, found `i32`
1074 help: you can convert an `i32` to an `f64`, producing the floating point representation of the integer
1076 LL | foo::<f64>(x_i32.into());
1079 error[E0308]: mismatched types
1080 --> $DIR/numeric-cast.rs:258:16
1082 LL | foo::<f64>(x_i16);
1083 | ^^^^^ expected `f64`, found `i16`
1085 help: you can convert an `i16` to an `f64`, producing the floating point representation of the integer
1087 LL | foo::<f64>(x_i16.into());
1090 error[E0308]: mismatched types
1091 --> $DIR/numeric-cast.rs:260:16
1093 LL | foo::<f64>(x_i8);
1094 | ^^^^ expected `f64`, found `i8`
1096 help: you can convert an `i8` to an `f64`, producing the floating point representation of the integer
1098 LL | foo::<f64>(x_i8.into());
1101 error[E0308]: mismatched types
1102 --> $DIR/numeric-cast.rs:263:16
1104 LL | foo::<f64>(x_f32);
1105 | ^^^^^ expected `f64`, found `f32`
1107 help: you can convert an `f32` to an `f64`
1109 LL | foo::<f64>(x_f32.into());
1112 error[E0308]: mismatched types
1113 --> $DIR/numeric-cast.rs:266:16
1115 LL | foo::<f32>(x_usize);
1116 | ^^^^^^^ expected `f32`, found `usize`
1118 help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, rounded if necessary
1120 LL | foo::<f32>(x_usize as f32);
1123 error[E0308]: mismatched types
1124 --> $DIR/numeric-cast.rs:268:16
1126 LL | foo::<f32>(x_u64);
1127 | ^^^^^ expected `f32`, found `u64`
1129 help: you can cast a `u64` to an `f32`, producing the floating point representation of the integer, rounded if necessary
1131 LL | foo::<f32>(x_u64 as f32);
1134 error[E0308]: mismatched types
1135 --> $DIR/numeric-cast.rs:270:16
1137 LL | foo::<f32>(x_u32);
1138 | ^^^^^ expected `f32`, found `u32`
1140 help: you can cast a `u32` to an `f32`, producing the floating point representation of the integer, rounded if necessary
1142 LL | foo::<f32>(x_u32 as f32);
1145 error[E0308]: mismatched types
1146 --> $DIR/numeric-cast.rs:272:16
1148 LL | foo::<f32>(x_u16);
1149 | ^^^^^ expected `f32`, found `u16`
1151 help: you can convert a `u16` to an `f32`, producing the floating point representation of the integer
1153 LL | foo::<f32>(x_u16.into());
1156 error[E0308]: mismatched types
1157 --> $DIR/numeric-cast.rs:274:16
1159 LL | foo::<f32>(x_u8);
1160 | ^^^^ expected `f32`, found `u8`
1162 help: you can convert a `u8` to an `f32`, producing the floating point representation of the integer
1164 LL | foo::<f32>(x_u8.into());
1167 error[E0308]: mismatched types
1168 --> $DIR/numeric-cast.rs:276:16
1170 LL | foo::<f32>(x_isize);
1171 | ^^^^^^^ expected `f32`, found `isize`
1173 help: you can convert an `isize` to an `f32`, producing the floating point representation of the integer, rounded if necessary
1175 LL | foo::<f32>(x_isize as f32);
1178 error[E0308]: mismatched types
1179 --> $DIR/numeric-cast.rs:278:16
1181 LL | foo::<f32>(x_i64);
1182 | ^^^^^ expected `f32`, found `i64`
1184 help: you can convert an `i64` to an `f32`, producing the floating point representation of the integer, rounded if necessary
1186 LL | foo::<f32>(x_i64 as f32);
1189 error[E0308]: mismatched types
1190 --> $DIR/numeric-cast.rs:280:16
1192 LL | foo::<f32>(x_i32);
1193 | ^^^^^ expected `f32`, found `i32`
1195 help: you can convert an `i32` to an `f32`, producing the floating point representation of the integer, rounded if necessary
1197 LL | foo::<f32>(x_i32 as f32);
1200 error[E0308]: mismatched types
1201 --> $DIR/numeric-cast.rs:282:16
1203 LL | foo::<f32>(x_i16);
1204 | ^^^^^ expected `f32`, found `i16`
1206 help: you can convert an `i16` to an `f32`, producing the floating point representation of the integer
1208 LL | foo::<f32>(x_i16.into());
1211 error[E0308]: mismatched types
1212 --> $DIR/numeric-cast.rs:284:16
1214 LL | foo::<f32>(x_i8);
1215 | ^^^^ expected `f32`, found `i8`
1217 help: you can convert an `i8` to an `f32`, producing the floating point representation of the integer
1219 LL | foo::<f32>(x_i8.into());
1222 error[E0308]: mismatched types
1223 --> $DIR/numeric-cast.rs:289:16
1225 LL | foo::<u32>(x_u8 as u16);
1226 | ^^^^^^^^^^^ expected `u32`, found `u16`
1228 help: you can convert a `u16` to a `u32`
1230 LL | foo::<u32>((x_u8 as u16).into());
1233 error[E0308]: mismatched types
1234 --> $DIR/numeric-cast.rs:291:16
1236 LL | foo::<i32>(-x_i8);
1237 | ^^^^^ expected `i32`, found `i8`
1239 help: you can convert an `i8` to an `i32`
1241 LL | foo::<i32>((-x_i8).into());
1244 error: aborting due to 113 previous errors
1246 For more information about this error, try `rustc --explain E0308`.