1 error[E0308]: mismatched types
2 --> $DIR/numeric-cast.rs:29:18
4 LL | foo::<usize>(x_u64);
5 | ^^^^^ expected usize, found u64
7 error[E0308]: mismatched types
8 --> $DIR/numeric-cast.rs:31:18
10 LL | foo::<usize>(x_u32);
11 | ^^^^^ expected usize, found u32
13 error[E0308]: mismatched types
14 --> $DIR/numeric-cast.rs:33:18
16 LL | foo::<usize>(x_u16);
17 | ^^^^^ expected usize, found u16
19 error[E0308]: mismatched types
20 --> $DIR/numeric-cast.rs:35:18
22 LL | foo::<usize>(x_u8);
23 | ^^^^ expected usize, found u8
25 error[E0308]: mismatched types
26 --> $DIR/numeric-cast.rs:37:18
28 LL | foo::<usize>(x_isize);
29 | ^^^^^^^ expected usize, found isize
31 error[E0308]: mismatched types
32 --> $DIR/numeric-cast.rs:39:18
34 LL | foo::<usize>(x_i64);
35 | ^^^^^ expected usize, found i64
37 error[E0308]: mismatched types
38 --> $DIR/numeric-cast.rs:41:18
40 LL | foo::<usize>(x_i32);
41 | ^^^^^ expected usize, found i32
43 error[E0308]: mismatched types
44 --> $DIR/numeric-cast.rs:43:18
46 LL | foo::<usize>(x_i16);
47 | ^^^^^ expected usize, found i16
49 error[E0308]: mismatched types
50 --> $DIR/numeric-cast.rs:45:18
52 LL | foo::<usize>(x_i8);
53 | ^^^^ expected usize, found i8
55 error[E0308]: mismatched types
56 --> $DIR/numeric-cast.rs:47:18
58 LL | foo::<usize>(x_f64);
59 | ^^^^^ expected usize, found f64
61 error[E0308]: mismatched types
62 --> $DIR/numeric-cast.rs:49:18
64 LL | foo::<usize>(x_f32);
65 | ^^^^^ expected usize, found f32
67 error[E0308]: mismatched types
68 --> $DIR/numeric-cast.rs:52:18
70 LL | foo::<isize>(x_usize);
71 | ^^^^^^^ expected isize, found usize
73 error[E0308]: mismatched types
74 --> $DIR/numeric-cast.rs:54:18
76 LL | foo::<isize>(x_u64);
77 | ^^^^^ expected isize, found u64
79 error[E0308]: mismatched types
80 --> $DIR/numeric-cast.rs:56:18
82 LL | foo::<isize>(x_u32);
83 | ^^^^^ expected isize, found u32
85 error[E0308]: mismatched types
86 --> $DIR/numeric-cast.rs:58:18
88 LL | foo::<isize>(x_u16);
89 | ^^^^^ expected isize, found u16
91 error[E0308]: mismatched types
92 --> $DIR/numeric-cast.rs:60:18
94 LL | foo::<isize>(x_u8);
95 | ^^^^ expected isize, found u8
97 error[E0308]: mismatched types
98 --> $DIR/numeric-cast.rs:63:18
100 LL | foo::<isize>(x_i64);
101 | ^^^^^ expected isize, found i64
103 error[E0308]: mismatched types
104 --> $DIR/numeric-cast.rs:65:18
106 LL | foo::<isize>(x_i32);
107 | ^^^^^ expected isize, found i32
109 error[E0308]: mismatched types
110 --> $DIR/numeric-cast.rs:67:18
112 LL | foo::<isize>(x_i16);
113 | ^^^^^ expected isize, found i16
115 error[E0308]: mismatched types
116 --> $DIR/numeric-cast.rs:69:18
118 LL | foo::<isize>(x_i8);
119 | ^^^^ expected isize, found i8
121 error[E0308]: mismatched types
122 --> $DIR/numeric-cast.rs:71:18
124 LL | foo::<isize>(x_f64);
125 | ^^^^^ expected isize, found f64
127 error[E0308]: mismatched types
128 --> $DIR/numeric-cast.rs:73:18
130 LL | foo::<isize>(x_f32);
131 | ^^^^^ expected isize, found f32
133 error[E0308]: mismatched types
134 --> $DIR/numeric-cast.rs:76:16
136 LL | foo::<u64>(x_usize);
137 | ^^^^^^^ expected u64, found usize
139 error[E0308]: mismatched types
140 --> $DIR/numeric-cast.rs:79:16
142 LL | foo::<u64>(x_u32);
143 | ^^^^^ expected u64, found u32
144 help: you can cast an `u32` to `u64`, which will zero-extend the source value
146 LL | foo::<u64>(x_u32.into());
149 error[E0308]: mismatched types
150 --> $DIR/numeric-cast.rs:81:16
152 LL | foo::<u64>(x_u16);
153 | ^^^^^ expected u64, found u16
154 help: you can cast an `u16` to `u64`, which will zero-extend the source value
156 LL | foo::<u64>(x_u16.into());
159 error[E0308]: mismatched types
160 --> $DIR/numeric-cast.rs:83:16
162 LL | foo::<u64>(x_u8);
163 | ^^^^ expected u64, found u8
164 help: you can cast an `u8` to `u64`, which will zero-extend the source value
166 LL | foo::<u64>(x_u8.into());
169 error[E0308]: mismatched types
170 --> $DIR/numeric-cast.rs:85:16
172 LL | foo::<u64>(x_isize);
173 | ^^^^^^^ expected u64, found isize
175 error[E0308]: mismatched types
176 --> $DIR/numeric-cast.rs:87:16
178 LL | foo::<u64>(x_i64);
179 | ^^^^^ expected u64, found i64
181 error[E0308]: mismatched types
182 --> $DIR/numeric-cast.rs:89:16
184 LL | foo::<u64>(x_i32);
185 | ^^^^^ expected u64, found i32
187 error[E0308]: mismatched types
188 --> $DIR/numeric-cast.rs:91:16
190 LL | foo::<u64>(x_i16);
191 | ^^^^^ expected u64, found i16
193 error[E0308]: mismatched types
194 --> $DIR/numeric-cast.rs:93:16
196 LL | foo::<u64>(x_i8);
197 | ^^^^ expected u64, found i8
199 error[E0308]: mismatched types
200 --> $DIR/numeric-cast.rs:95:16
202 LL | foo::<u64>(x_f64);
203 | ^^^^^ expected u64, found f64
205 error[E0308]: mismatched types
206 --> $DIR/numeric-cast.rs:97:16
208 LL | foo::<u64>(x_f32);
209 | ^^^^^ expected u64, found f32
211 error[E0308]: mismatched types
212 --> $DIR/numeric-cast.rs:100:16
214 LL | foo::<i64>(x_usize);
215 | ^^^^^^^ expected i64, found usize
217 error[E0308]: mismatched types
218 --> $DIR/numeric-cast.rs:102:16
220 LL | foo::<i64>(x_u64);
221 | ^^^^^ expected i64, found u64
223 error[E0308]: mismatched types
224 --> $DIR/numeric-cast.rs:104:16
226 LL | foo::<i64>(x_u32);
227 | ^^^^^ expected i64, found u32
229 error[E0308]: mismatched types
230 --> $DIR/numeric-cast.rs:106:16
232 LL | foo::<i64>(x_u16);
233 | ^^^^^ expected i64, found u16
235 error[E0308]: mismatched types
236 --> $DIR/numeric-cast.rs:108:16
238 LL | foo::<i64>(x_u8);
239 | ^^^^ expected i64, found u8
241 error[E0308]: mismatched types
242 --> $DIR/numeric-cast.rs:110:16
244 LL | foo::<i64>(x_isize);
245 | ^^^^^^^ expected i64, found isize
247 error[E0308]: mismatched types
248 --> $DIR/numeric-cast.rs:113:16
250 LL | foo::<i64>(x_i32);
251 | ^^^^^ expected i64, found i32
252 help: you can cast an `i32` to `i64`, which will sign-extend the source value
254 LL | foo::<i64>(x_i32.into());
257 error[E0308]: mismatched types
258 --> $DIR/numeric-cast.rs:115:16
260 LL | foo::<i64>(x_i16);
261 | ^^^^^ expected i64, found i16
262 help: you can cast an `i16` to `i64`, which will sign-extend the source value
264 LL | foo::<i64>(x_i16.into());
267 error[E0308]: mismatched types
268 --> $DIR/numeric-cast.rs:117:16
270 LL | foo::<i64>(x_i8);
271 | ^^^^ expected i64, found i8
272 help: you can cast an `i8` to `i64`, which will sign-extend the source value
274 LL | foo::<i64>(x_i8.into());
277 error[E0308]: mismatched types
278 --> $DIR/numeric-cast.rs:119:16
280 LL | foo::<i64>(x_f64);
281 | ^^^^^ expected i64, found f64
283 error[E0308]: mismatched types
284 --> $DIR/numeric-cast.rs:121:16
286 LL | foo::<i64>(x_f32);
287 | ^^^^^ expected i64, found f32
289 error[E0308]: mismatched types
290 --> $DIR/numeric-cast.rs:124:16
292 LL | foo::<u32>(x_usize);
293 | ^^^^^^^ expected u32, found usize
295 error[E0308]: mismatched types
296 --> $DIR/numeric-cast.rs:126:16
298 LL | foo::<u32>(x_u64);
299 | ^^^^^ expected u32, found u64
301 error[E0308]: mismatched types
302 --> $DIR/numeric-cast.rs:129:16
304 LL | foo::<u32>(x_u16);
305 | ^^^^^ expected u32, found u16
306 help: you can cast an `u16` to `u32`, which will zero-extend the source value
308 LL | foo::<u32>(x_u16.into());
311 error[E0308]: mismatched types
312 --> $DIR/numeric-cast.rs:131:16
314 LL | foo::<u32>(x_u8);
315 | ^^^^ expected u32, found u8
316 help: you can cast an `u8` to `u32`, which will zero-extend the source value
318 LL | foo::<u32>(x_u8.into());
321 error[E0308]: mismatched types
322 --> $DIR/numeric-cast.rs:133:16
324 LL | foo::<u32>(x_isize);
325 | ^^^^^^^ expected u32, found isize
327 error[E0308]: mismatched types
328 --> $DIR/numeric-cast.rs:135:16
330 LL | foo::<u32>(x_i64);
331 | ^^^^^ expected u32, found i64
333 error[E0308]: mismatched types
334 --> $DIR/numeric-cast.rs:137:16
336 LL | foo::<u32>(x_i32);
337 | ^^^^^ expected u32, found i32
339 error[E0308]: mismatched types
340 --> $DIR/numeric-cast.rs:139:16
342 LL | foo::<u32>(x_i16);
343 | ^^^^^ expected u32, found i16
345 error[E0308]: mismatched types
346 --> $DIR/numeric-cast.rs:141:16
348 LL | foo::<u32>(x_i8);
349 | ^^^^ expected u32, found i8
351 error[E0308]: mismatched types
352 --> $DIR/numeric-cast.rs:143:16
354 LL | foo::<u32>(x_f64);
355 | ^^^^^ expected u32, found f64
357 error[E0308]: mismatched types
358 --> $DIR/numeric-cast.rs:145:16
360 LL | foo::<u32>(x_f32);
361 | ^^^^^ expected u32, found f32
363 error[E0308]: mismatched types
364 --> $DIR/numeric-cast.rs:148:16
366 LL | foo::<i32>(x_usize);
367 | ^^^^^^^ expected i32, found usize
369 error[E0308]: mismatched types
370 --> $DIR/numeric-cast.rs:150:16
372 LL | foo::<i32>(x_u64);
373 | ^^^^^ expected i32, found u64
375 error[E0308]: mismatched types
376 --> $DIR/numeric-cast.rs:152:16
378 LL | foo::<i32>(x_u32);
379 | ^^^^^ expected i32, found u32
381 error[E0308]: mismatched types
382 --> $DIR/numeric-cast.rs:154:16
384 LL | foo::<i32>(x_u16);
385 | ^^^^^ expected i32, found u16
387 error[E0308]: mismatched types
388 --> $DIR/numeric-cast.rs:156:16
390 LL | foo::<i32>(x_u8);
391 | ^^^^ expected i32, found u8
393 error[E0308]: mismatched types
394 --> $DIR/numeric-cast.rs:158:16
396 LL | foo::<i32>(x_isize);
397 | ^^^^^^^ expected i32, found isize
399 error[E0308]: mismatched types
400 --> $DIR/numeric-cast.rs:160:16
402 LL | foo::<i32>(x_i64);
403 | ^^^^^ expected i32, found i64
405 error[E0308]: mismatched types
406 --> $DIR/numeric-cast.rs:163:16
408 LL | foo::<i32>(x_i16);
409 | ^^^^^ expected i32, found i16
410 help: you can cast an `i16` to `i32`, which will sign-extend the source value
412 LL | foo::<i32>(x_i16.into());
415 error[E0308]: mismatched types
416 --> $DIR/numeric-cast.rs:165:16
418 LL | foo::<i32>(x_i8);
419 | ^^^^ expected i32, found i8
420 help: you can cast an `i8` to `i32`, which will sign-extend the source value
422 LL | foo::<i32>(x_i8.into());
425 error[E0308]: mismatched types
426 --> $DIR/numeric-cast.rs:167:16
428 LL | foo::<i32>(x_f64);
429 | ^^^^^ expected i32, found f64
431 error[E0308]: mismatched types
432 --> $DIR/numeric-cast.rs:169:16
434 LL | foo::<i32>(x_f32);
435 | ^^^^^ expected i32, found f32
437 error[E0308]: mismatched types
438 --> $DIR/numeric-cast.rs:172:16
440 LL | foo::<u16>(x_usize);
441 | ^^^^^^^ expected u16, found usize
443 error[E0308]: mismatched types
444 --> $DIR/numeric-cast.rs:174:16
446 LL | foo::<u16>(x_u64);
447 | ^^^^^ expected u16, found u64
449 error[E0308]: mismatched types
450 --> $DIR/numeric-cast.rs:176:16
452 LL | foo::<u16>(x_u32);
453 | ^^^^^ expected u16, found u32
455 error[E0308]: mismatched types
456 --> $DIR/numeric-cast.rs:179:16
458 LL | foo::<u16>(x_u8);
459 | ^^^^ expected u16, found u8
460 help: you can cast an `u8` to `u16`, which will zero-extend the source value
462 LL | foo::<u16>(x_u8.into());
465 error[E0308]: mismatched types
466 --> $DIR/numeric-cast.rs:181:16
468 LL | foo::<u16>(x_isize);
469 | ^^^^^^^ expected u16, found isize
471 error[E0308]: mismatched types
472 --> $DIR/numeric-cast.rs:183:16
474 LL | foo::<u16>(x_i64);
475 | ^^^^^ expected u16, found i64
477 error[E0308]: mismatched types
478 --> $DIR/numeric-cast.rs:185:16
480 LL | foo::<u16>(x_i32);
481 | ^^^^^ expected u16, found i32
483 error[E0308]: mismatched types
484 --> $DIR/numeric-cast.rs:187:16
486 LL | foo::<u16>(x_i16);
487 | ^^^^^ expected u16, found i16
489 error[E0308]: mismatched types
490 --> $DIR/numeric-cast.rs:189:16
492 LL | foo::<u16>(x_i8);
493 | ^^^^ expected u16, found i8
495 error[E0308]: mismatched types
496 --> $DIR/numeric-cast.rs:191:16
498 LL | foo::<u16>(x_f64);
499 | ^^^^^ expected u16, found f64
501 error[E0308]: mismatched types
502 --> $DIR/numeric-cast.rs:193:16
504 LL | foo::<u16>(x_f32);
505 | ^^^^^ expected u16, found f32
507 error[E0308]: mismatched types
508 --> $DIR/numeric-cast.rs:196:16
510 LL | foo::<i16>(x_usize);
511 | ^^^^^^^ expected i16, found usize
513 error[E0308]: mismatched types
514 --> $DIR/numeric-cast.rs:198:16
516 LL | foo::<i16>(x_u64);
517 | ^^^^^ expected i16, found u64
519 error[E0308]: mismatched types
520 --> $DIR/numeric-cast.rs:200:16
522 LL | foo::<i16>(x_u32);
523 | ^^^^^ expected i16, found u32
525 error[E0308]: mismatched types
526 --> $DIR/numeric-cast.rs:202:16
528 LL | foo::<i16>(x_u16);
529 | ^^^^^ expected i16, found u16
531 error[E0308]: mismatched types
532 --> $DIR/numeric-cast.rs:204:16
534 LL | foo::<i16>(x_u8);
535 | ^^^^ expected i16, found u8
537 error[E0308]: mismatched types
538 --> $DIR/numeric-cast.rs:206:16
540 LL | foo::<i16>(x_isize);
541 | ^^^^^^^ expected i16, found isize
543 error[E0308]: mismatched types
544 --> $DIR/numeric-cast.rs:208:16
546 LL | foo::<i16>(x_i64);
547 | ^^^^^ expected i16, found i64
549 error[E0308]: mismatched types
550 --> $DIR/numeric-cast.rs:210:16
552 LL | foo::<i16>(x_i32);
553 | ^^^^^ expected i16, found i32
555 error[E0308]: mismatched types
556 --> $DIR/numeric-cast.rs:213:16
558 LL | foo::<i16>(x_i8);
559 | ^^^^ expected i16, found i8
560 help: you can cast an `i8` to `i16`, which will sign-extend the source value
562 LL | foo::<i16>(x_i8.into());
565 error[E0308]: mismatched types
566 --> $DIR/numeric-cast.rs:215:16
568 LL | foo::<i16>(x_f64);
569 | ^^^^^ expected i16, found f64
571 error[E0308]: mismatched types
572 --> $DIR/numeric-cast.rs:217:16
574 LL | foo::<i16>(x_f32);
575 | ^^^^^ expected i16, found f32
577 error[E0308]: mismatched types
578 --> $DIR/numeric-cast.rs:220:15
580 LL | foo::<u8>(x_usize);
581 | ^^^^^^^ expected u8, found usize
583 error[E0308]: mismatched types
584 --> $DIR/numeric-cast.rs:222:15
586 LL | foo::<u8>(x_u64);
587 | ^^^^^ expected u8, found u64
589 error[E0308]: mismatched types
590 --> $DIR/numeric-cast.rs:224:15
592 LL | foo::<u8>(x_u32);
593 | ^^^^^ expected u8, found u32
595 error[E0308]: mismatched types
596 --> $DIR/numeric-cast.rs:226:15
598 LL | foo::<u8>(x_u16);
599 | ^^^^^ expected u8, found u16
601 error[E0308]: mismatched types
602 --> $DIR/numeric-cast.rs:229:15
604 LL | foo::<u8>(x_isize);
605 | ^^^^^^^ expected u8, found isize
607 error[E0308]: mismatched types
608 --> $DIR/numeric-cast.rs:231:15
610 LL | foo::<u8>(x_i64);
611 | ^^^^^ expected u8, found i64
613 error[E0308]: mismatched types
614 --> $DIR/numeric-cast.rs:233:15
616 LL | foo::<u8>(x_i32);
617 | ^^^^^ expected u8, found i32
619 error[E0308]: mismatched types
620 --> $DIR/numeric-cast.rs:235:15
622 LL | foo::<u8>(x_i16);
623 | ^^^^^ expected u8, found i16
625 error[E0308]: mismatched types
626 --> $DIR/numeric-cast.rs:237:15
628 LL | foo::<u8>(x_i8);
629 | ^^^^ expected u8, found i8
631 error[E0308]: mismatched types
632 --> $DIR/numeric-cast.rs:239:15
634 LL | foo::<u8>(x_f64);
635 | ^^^^^ expected u8, found f64
637 error[E0308]: mismatched types
638 --> $DIR/numeric-cast.rs:241:15
640 LL | foo::<u8>(x_f32);
641 | ^^^^^ expected u8, found f32
643 error[E0308]: mismatched types
644 --> $DIR/numeric-cast.rs:244:15
646 LL | foo::<i8>(x_usize);
647 | ^^^^^^^ expected i8, found usize
649 error[E0308]: mismatched types
650 --> $DIR/numeric-cast.rs:246:15
652 LL | foo::<i8>(x_u64);
653 | ^^^^^ expected i8, found u64
655 error[E0308]: mismatched types
656 --> $DIR/numeric-cast.rs:248:15
658 LL | foo::<i8>(x_u32);
659 | ^^^^^ expected i8, found u32
661 error[E0308]: mismatched types
662 --> $DIR/numeric-cast.rs:250:15
664 LL | foo::<i8>(x_u16);
665 | ^^^^^ expected i8, found u16
667 error[E0308]: mismatched types
668 --> $DIR/numeric-cast.rs:252:15
670 LL | foo::<i8>(x_u8);
671 | ^^^^ expected i8, found u8
673 error[E0308]: mismatched types
674 --> $DIR/numeric-cast.rs:254:15
676 LL | foo::<i8>(x_isize);
677 | ^^^^^^^ expected i8, found isize
679 error[E0308]: mismatched types
680 --> $DIR/numeric-cast.rs:256:15
682 LL | foo::<i8>(x_i64);
683 | ^^^^^ expected i8, found i64
685 error[E0308]: mismatched types
686 --> $DIR/numeric-cast.rs:258:15
688 LL | foo::<i8>(x_i32);
689 | ^^^^^ expected i8, found i32
691 error[E0308]: mismatched types
692 --> $DIR/numeric-cast.rs:260:15
694 LL | foo::<i8>(x_i16);
695 | ^^^^^ expected i8, found i16
697 error[E0308]: mismatched types
698 --> $DIR/numeric-cast.rs:263:15
700 LL | foo::<i8>(x_f64);
701 | ^^^^^ expected i8, found f64
703 error[E0308]: mismatched types
704 --> $DIR/numeric-cast.rs:265:15
706 LL | foo::<i8>(x_f32);
707 | ^^^^^ expected i8, found f32
709 error[E0308]: mismatched types
710 --> $DIR/numeric-cast.rs:268:16
712 LL | foo::<f64>(x_usize);
713 | ^^^^^^^ expected f64, found usize
715 error[E0308]: mismatched types
716 --> $DIR/numeric-cast.rs:270:16
718 LL | foo::<f64>(x_u64);
719 | ^^^^^ expected f64, found u64
721 error[E0308]: mismatched types
722 --> $DIR/numeric-cast.rs:272:16
724 LL | foo::<f64>(x_u32);
725 | ^^^^^ expected f64, found u32
726 help: you can cast an `u32` to `f64`, producing the floating point representation of the integer
728 LL | foo::<f64>(x_u32.into());
731 error[E0308]: mismatched types
732 --> $DIR/numeric-cast.rs:274:16
734 LL | foo::<f64>(x_u16);
735 | ^^^^^ expected f64, found u16
736 help: you can cast an `u16` to `f64`, producing the floating point representation of the integer
738 LL | foo::<f64>(x_u16.into());
741 error[E0308]: mismatched types
742 --> $DIR/numeric-cast.rs:276:16
744 LL | foo::<f64>(x_u8);
745 | ^^^^ expected f64, found u8
746 help: you can cast an `u8` to `f64`, producing the floating point representation of the integer
748 LL | foo::<f64>(x_u8.into());
751 error[E0308]: mismatched types
752 --> $DIR/numeric-cast.rs:278:16
754 LL | foo::<f64>(x_isize);
755 | ^^^^^^^ expected f64, found isize
757 error[E0308]: mismatched types
758 --> $DIR/numeric-cast.rs:280:16
760 LL | foo::<f64>(x_i64);
761 | ^^^^^ expected f64, found i64
763 error[E0308]: mismatched types
764 --> $DIR/numeric-cast.rs:282:16
766 LL | foo::<f64>(x_i32);
767 | ^^^^^ expected f64, found i32
768 help: you can cast an `i32` to `f64`, producing the floating point representation of the integer
770 LL | foo::<f64>(x_i32.into());
773 error[E0308]: mismatched types
774 --> $DIR/numeric-cast.rs:284:16
776 LL | foo::<f64>(x_i16);
777 | ^^^^^ expected f64, found i16
778 help: you can cast an `i16` to `f64`, producing the floating point representation of the integer
780 LL | foo::<f64>(x_i16.into());
783 error[E0308]: mismatched types
784 --> $DIR/numeric-cast.rs:286:16
786 LL | foo::<f64>(x_i8);
787 | ^^^^ expected f64, found i8
788 help: you can cast an `i8` to `f64`, producing the floating point representation of the integer
790 LL | foo::<f64>(x_i8.into());
793 error[E0308]: mismatched types
794 --> $DIR/numeric-cast.rs:289:16
796 LL | foo::<f64>(x_f32);
797 | ^^^^^ expected f64, found f32
798 help: you can cast an `f32` to `f64` in a lossless way
800 LL | foo::<f64>(x_f32.into());
803 error[E0308]: mismatched types
804 --> $DIR/numeric-cast.rs:292:16
806 LL | foo::<f32>(x_usize);
807 | ^^^^^^^ expected f32, found usize
809 error[E0308]: mismatched types
810 --> $DIR/numeric-cast.rs:294:16
812 LL | foo::<f32>(x_u64);
813 | ^^^^^ expected f32, found u64
815 error[E0308]: mismatched types
816 --> $DIR/numeric-cast.rs:296:16
818 LL | foo::<f32>(x_u32);
819 | ^^^^^ expected f32, found u32
821 error[E0308]: mismatched types
822 --> $DIR/numeric-cast.rs:298:16
824 LL | foo::<f32>(x_u16);
825 | ^^^^^ expected f32, found u16
826 help: you can cast an `u16` to `f32`, producing the floating point representation of the integer
828 LL | foo::<f32>(x_u16.into());
831 error[E0308]: mismatched types
832 --> $DIR/numeric-cast.rs:300:16
834 LL | foo::<f32>(x_u8);
835 | ^^^^ expected f32, found u8
836 help: you can cast an `u8` to `f32`, producing the floating point representation of the integer
838 LL | foo::<f32>(x_u8.into());
841 error[E0308]: mismatched types
842 --> $DIR/numeric-cast.rs:302:16
844 LL | foo::<f32>(x_isize);
845 | ^^^^^^^ expected f32, found isize
847 error[E0308]: mismatched types
848 --> $DIR/numeric-cast.rs:304:16
850 LL | foo::<f32>(x_i64);
851 | ^^^^^ expected f32, found i64
853 error[E0308]: mismatched types
854 --> $DIR/numeric-cast.rs:306:16
856 LL | foo::<f32>(x_i32);
857 | ^^^^^ expected f32, found i32
859 error[E0308]: mismatched types
860 --> $DIR/numeric-cast.rs:308:16
862 LL | foo::<f32>(x_i16);
863 | ^^^^^ expected f32, found i16
864 help: you can cast an `i16` to `f32`, producing the floating point representation of the integer
866 LL | foo::<f32>(x_i16.into());
869 error[E0308]: mismatched types
870 --> $DIR/numeric-cast.rs:310:16
872 LL | foo::<f32>(x_i8);
873 | ^^^^ expected f32, found i8
874 help: you can cast an `i8` to `f32`, producing the floating point representation of the integer
876 LL | foo::<f32>(x_i8.into());
879 error[E0308]: mismatched types
880 --> $DIR/numeric-cast.rs:312:16
882 LL | foo::<f32>(x_f64);
883 | ^^^^^ expected f32, found f64
885 error[E0308]: mismatched types
886 --> $DIR/numeric-cast.rs:316:16
888 LL | foo::<u32>(x_u8 as u16);
889 | ^^^^^^^^^^^ expected u32, found u16
890 help: you can cast an `u16` to `u32`, which will zero-extend the source value
892 LL | foo::<u32>((x_u8 as u16).into());
893 | ^^^^^^^^^^^^^^^^^^^^
895 error[E0308]: mismatched types
896 --> $DIR/numeric-cast.rs:318:16
898 LL | foo::<i32>(-x_i8);
899 | ^^^^^ expected i32, found i8
900 help: you can cast an `i8` to `i32`, which will sign-extend the source value
902 LL | foo::<i32>((-x_i8).into());
905 error: aborting due to 134 previous errors
907 For more information about this error, try `rustc --explain E0308`.