1 error[E0308]: mismatched types
2 --> $DIR/numeric-suffix.rs:143:16
4 LL | foo::<u16>(42_usize);
5 | ---------- ^^^^^^^^ expected `u16`, found `usize`
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/numeric-suffix.rs:3:4
12 LL | fn foo<N>(_x: N) {}
14 help: change the type of the numeric literal from `usize` to `u16`
16 LL | foo::<u16>(42_u16);
19 error[E0308]: mismatched types
20 --> $DIR/numeric-suffix.rs:147:16
22 LL | foo::<u16>(42_u64);
23 | ---------- ^^^^^^ expected `u16`, found `u64`
25 | arguments to this function are incorrect
27 note: function defined here
28 --> $DIR/numeric-suffix.rs:3:4
30 LL | fn foo<N>(_x: N) {}
32 help: change the type of the numeric literal from `u64` to `u16`
34 LL | foo::<u16>(42_u16);
37 error[E0308]: mismatched types
38 --> $DIR/numeric-suffix.rs:151:16
40 LL | foo::<u16>(42_u32);
41 | ---------- ^^^^^^ expected `u16`, found `u32`
43 | arguments to this function are incorrect
45 note: function defined here
46 --> $DIR/numeric-suffix.rs:3:4
48 LL | fn foo<N>(_x: N) {}
50 help: change the type of the numeric literal from `u32` to `u16`
52 LL | foo::<u16>(42_u16);
55 error[E0308]: mismatched types
56 --> $DIR/numeric-suffix.rs:156:16
58 LL | foo::<u16>(42_u8);
59 | ---------- ^^^^^ expected `u16`, found `u8`
61 | arguments to this function are incorrect
63 note: function defined here
64 --> $DIR/numeric-suffix.rs:3:4
66 LL | fn foo<N>(_x: N) {}
68 help: change the type of the numeric literal from `u8` to `u16`
70 LL | foo::<u16>(42_u16);
73 error[E0308]: mismatched types
74 --> $DIR/numeric-suffix.rs:160:16
76 LL | foo::<u16>(42_isize);
77 | ---------- ^^^^^^^^ expected `u16`, found `isize`
79 | arguments to this function are incorrect
81 note: function defined here
82 --> $DIR/numeric-suffix.rs:3:4
84 LL | fn foo<N>(_x: N) {}
86 help: change the type of the numeric literal from `isize` to `u16`
88 LL | foo::<u16>(42_u16);
91 error[E0308]: mismatched types
92 --> $DIR/numeric-suffix.rs:164:16
94 LL | foo::<u16>(42_i64);
95 | ---------- ^^^^^^ expected `u16`, found `i64`
97 | arguments to this function are incorrect
99 note: function defined here
100 --> $DIR/numeric-suffix.rs:3:4
102 LL | fn foo<N>(_x: N) {}
104 help: change the type of the numeric literal from `i64` to `u16`
106 LL | foo::<u16>(42_u16);
109 error[E0308]: mismatched types
110 --> $DIR/numeric-suffix.rs:168:16
112 LL | foo::<u16>(42_i32);
113 | ---------- ^^^^^^ expected `u16`, found `i32`
115 | arguments to this function are incorrect
117 note: function defined here
118 --> $DIR/numeric-suffix.rs:3:4
120 LL | fn foo<N>(_x: N) {}
122 help: change the type of the numeric literal from `i32` to `u16`
124 LL | foo::<u16>(42_u16);
127 error[E0308]: mismatched types
128 --> $DIR/numeric-suffix.rs:172:16
130 LL | foo::<u16>(42_i16);
131 | ---------- ^^^^^^ expected `u16`, found `i16`
133 | arguments to this function are incorrect
135 note: function defined here
136 --> $DIR/numeric-suffix.rs:3:4
138 LL | fn foo<N>(_x: N) {}
140 help: change the type of the numeric literal from `i16` to `u16`
142 LL | foo::<u16>(42_u16);
145 error[E0308]: mismatched types
146 --> $DIR/numeric-suffix.rs:176:16
148 LL | foo::<u16>(42_i8);
149 | ---------- ^^^^^ expected `u16`, found `i8`
151 | arguments to this function are incorrect
153 note: function defined here
154 --> $DIR/numeric-suffix.rs:3:4
156 LL | fn foo<N>(_x: N) {}
158 help: change the type of the numeric literal from `i8` to `u16`
160 LL | foo::<u16>(42_u16);
163 error[E0308]: mismatched types
164 --> $DIR/numeric-suffix.rs:180:16
166 LL | foo::<u16>(42.0_f64);
167 | ---------- ^^^^^^^^ expected `u16`, found `f64`
169 | arguments to this function are incorrect
171 note: function defined here
172 --> $DIR/numeric-suffix.rs:3:4
174 LL | fn foo<N>(_x: N) {}
176 help: change the type of the numeric literal from `f64` to `u16`
178 LL | foo::<u16>(42u16);
181 error[E0308]: mismatched types
182 --> $DIR/numeric-suffix.rs:184:16
184 LL | foo::<u16>(42.0_f32);
185 | ---------- ^^^^^^^^ expected `u16`, found `f32`
187 | arguments to this function are incorrect
189 note: function defined here
190 --> $DIR/numeric-suffix.rs:3:4
192 LL | fn foo<N>(_x: N) {}
194 help: change the type of the numeric literal from `f32` to `u16`
196 LL | foo::<u16>(42u16);
199 error[E0308]: mismatched types
200 --> $DIR/numeric-suffix.rs:189:16
202 LL | foo::<i16>(42_usize);
203 | ---------- ^^^^^^^^ expected `i16`, found `usize`
205 | arguments to this function are incorrect
207 note: function defined here
208 --> $DIR/numeric-suffix.rs:3:4
210 LL | fn foo<N>(_x: N) {}
212 help: change the type of the numeric literal from `usize` to `i16`
214 LL | foo::<i16>(42_i16);
217 error[E0308]: mismatched types
218 --> $DIR/numeric-suffix.rs:193:16
220 LL | foo::<i16>(42_u64);
221 | ---------- ^^^^^^ expected `i16`, found `u64`
223 | arguments to this function are incorrect
225 note: function defined here
226 --> $DIR/numeric-suffix.rs:3:4
228 LL | fn foo<N>(_x: N) {}
230 help: change the type of the numeric literal from `u64` to `i16`
232 LL | foo::<i16>(42_i16);
235 error[E0308]: mismatched types
236 --> $DIR/numeric-suffix.rs:197:16
238 LL | foo::<i16>(42_u32);
239 | ---------- ^^^^^^ expected `i16`, found `u32`
241 | arguments to this function are incorrect
243 note: function defined here
244 --> $DIR/numeric-suffix.rs:3:4
246 LL | fn foo<N>(_x: N) {}
248 help: change the type of the numeric literal from `u32` to `i16`
250 LL | foo::<i16>(42_i16);
253 error[E0308]: mismatched types
254 --> $DIR/numeric-suffix.rs:201:16
256 LL | foo::<i16>(42_u16);
257 | ---------- ^^^^^^ expected `i16`, found `u16`
259 | arguments to this function are incorrect
261 note: function defined here
262 --> $DIR/numeric-suffix.rs:3:4
264 LL | fn foo<N>(_x: N) {}
266 help: change the type of the numeric literal from `u16` to `i16`
268 LL | foo::<i16>(42_i16);
271 error[E0308]: mismatched types
272 --> $DIR/numeric-suffix.rs:205:16
274 LL | foo::<i16>(42_u8);
275 | ---------- ^^^^^ expected `i16`, found `u8`
277 | arguments to this function are incorrect
279 note: function defined here
280 --> $DIR/numeric-suffix.rs:3:4
282 LL | fn foo<N>(_x: N) {}
284 help: change the type of the numeric literal from `u8` to `i16`
286 LL | foo::<i16>(42_i16);
289 error[E0308]: mismatched types
290 --> $DIR/numeric-suffix.rs:209:16
292 LL | foo::<i16>(42_isize);
293 | ---------- ^^^^^^^^ expected `i16`, found `isize`
295 | arguments to this function are incorrect
297 note: function defined here
298 --> $DIR/numeric-suffix.rs:3:4
300 LL | fn foo<N>(_x: N) {}
302 help: change the type of the numeric literal from `isize` to `i16`
304 LL | foo::<i16>(42_i16);
307 error[E0308]: mismatched types
308 --> $DIR/numeric-suffix.rs:213:16
310 LL | foo::<i16>(42_i64);
311 | ---------- ^^^^^^ expected `i16`, found `i64`
313 | arguments to this function are incorrect
315 note: function defined here
316 --> $DIR/numeric-suffix.rs:3:4
318 LL | fn foo<N>(_x: N) {}
320 help: change the type of the numeric literal from `i64` to `i16`
322 LL | foo::<i16>(42_i16);
325 error[E0308]: mismatched types
326 --> $DIR/numeric-suffix.rs:217:16
328 LL | foo::<i16>(42_i32);
329 | ---------- ^^^^^^ expected `i16`, found `i32`
331 | arguments to this function are incorrect
333 note: function defined here
334 --> $DIR/numeric-suffix.rs:3:4
336 LL | fn foo<N>(_x: N) {}
338 help: change the type of the numeric literal from `i32` to `i16`
340 LL | foo::<i16>(42_i16);
343 error[E0308]: mismatched types
344 --> $DIR/numeric-suffix.rs:222:16
346 LL | foo::<i16>(42_i8);
347 | ---------- ^^^^^ expected `i16`, found `i8`
349 | arguments to this function are incorrect
351 note: function defined here
352 --> $DIR/numeric-suffix.rs:3:4
354 LL | fn foo<N>(_x: N) {}
356 help: change the type of the numeric literal from `i8` to `i16`
358 LL | foo::<i16>(42_i16);
361 error[E0308]: mismatched types
362 --> $DIR/numeric-suffix.rs:226:16
364 LL | foo::<i16>(42.0_f64);
365 | ---------- ^^^^^^^^ expected `i16`, found `f64`
367 | arguments to this function are incorrect
369 note: function defined here
370 --> $DIR/numeric-suffix.rs:3:4
372 LL | fn foo<N>(_x: N) {}
374 help: change the type of the numeric literal from `f64` to `i16`
376 LL | foo::<i16>(42i16);
379 error[E0308]: mismatched types
380 --> $DIR/numeric-suffix.rs:230:16
382 LL | foo::<i16>(42.0_f32);
383 | ---------- ^^^^^^^^ expected `i16`, found `f32`
385 | arguments to this function are incorrect
387 note: function defined here
388 --> $DIR/numeric-suffix.rs:3:4
390 LL | fn foo<N>(_x: N) {}
392 help: change the type of the numeric literal from `f32` to `i16`
394 LL | foo::<i16>(42i16);
397 error[E0308]: mismatched types
398 --> $DIR/numeric-suffix.rs:235:15
400 LL | foo::<u8>(42_usize);
401 | --------- ^^^^^^^^ expected `u8`, found `usize`
403 | arguments to this function are incorrect
405 note: function defined here
406 --> $DIR/numeric-suffix.rs:3:4
408 LL | fn foo<N>(_x: N) {}
410 help: change the type of the numeric literal from `usize` to `u8`
412 LL | foo::<u8>(42_u8);
415 error[E0308]: mismatched types
416 --> $DIR/numeric-suffix.rs:239:15
418 LL | foo::<u8>(42_u64);
419 | --------- ^^^^^^ expected `u8`, found `u64`
421 | arguments to this function are incorrect
423 note: function defined here
424 --> $DIR/numeric-suffix.rs:3:4
426 LL | fn foo<N>(_x: N) {}
428 help: change the type of the numeric literal from `u64` to `u8`
430 LL | foo::<u8>(42_u8);
433 error[E0308]: mismatched types
434 --> $DIR/numeric-suffix.rs:243:15
436 LL | foo::<u8>(42_u32);
437 | --------- ^^^^^^ expected `u8`, found `u32`
439 | arguments to this function are incorrect
441 note: function defined here
442 --> $DIR/numeric-suffix.rs:3:4
444 LL | fn foo<N>(_x: N) {}
446 help: change the type of the numeric literal from `u32` to `u8`
448 LL | foo::<u8>(42_u8);
451 error[E0308]: mismatched types
452 --> $DIR/numeric-suffix.rs:247:15
454 LL | foo::<u8>(42_u16);
455 | --------- ^^^^^^ expected `u8`, found `u16`
457 | arguments to this function are incorrect
459 note: function defined here
460 --> $DIR/numeric-suffix.rs:3:4
462 LL | fn foo<N>(_x: N) {}
464 help: change the type of the numeric literal from `u16` to `u8`
466 LL | foo::<u8>(42_u8);
469 error[E0308]: mismatched types
470 --> $DIR/numeric-suffix.rs:252:15
472 LL | foo::<u8>(42_isize);
473 | --------- ^^^^^^^^ expected `u8`, found `isize`
475 | arguments to this function are incorrect
477 note: function defined here
478 --> $DIR/numeric-suffix.rs:3:4
480 LL | fn foo<N>(_x: N) {}
482 help: change the type of the numeric literal from `isize` to `u8`
484 LL | foo::<u8>(42_u8);
487 error[E0308]: mismatched types
488 --> $DIR/numeric-suffix.rs:256:15
490 LL | foo::<u8>(42_i64);
491 | --------- ^^^^^^ expected `u8`, found `i64`
493 | arguments to this function are incorrect
495 note: function defined here
496 --> $DIR/numeric-suffix.rs:3:4
498 LL | fn foo<N>(_x: N) {}
500 help: change the type of the numeric literal from `i64` to `u8`
502 LL | foo::<u8>(42_u8);
505 error[E0308]: mismatched types
506 --> $DIR/numeric-suffix.rs:260:15
508 LL | foo::<u8>(42_i32);
509 | --------- ^^^^^^ expected `u8`, found `i32`
511 | arguments to this function are incorrect
513 note: function defined here
514 --> $DIR/numeric-suffix.rs:3:4
516 LL | fn foo<N>(_x: N) {}
518 help: change the type of the numeric literal from `i32` to `u8`
520 LL | foo::<u8>(42_u8);
523 error[E0308]: mismatched types
524 --> $DIR/numeric-suffix.rs:264:15
526 LL | foo::<u8>(42_i16);
527 | --------- ^^^^^^ expected `u8`, found `i16`
529 | arguments to this function are incorrect
531 note: function defined here
532 --> $DIR/numeric-suffix.rs:3:4
534 LL | fn foo<N>(_x: N) {}
536 help: change the type of the numeric literal from `i16` to `u8`
538 LL | foo::<u8>(42_u8);
541 error[E0308]: mismatched types
542 --> $DIR/numeric-suffix.rs:268:15
544 LL | foo::<u8>(42_i8);
545 | --------- ^^^^^ expected `u8`, found `i8`
547 | arguments to this function are incorrect
549 note: function defined here
550 --> $DIR/numeric-suffix.rs:3:4
552 LL | fn foo<N>(_x: N) {}
554 help: change the type of the numeric literal from `i8` to `u8`
556 LL | foo::<u8>(42_u8);
559 error[E0308]: mismatched types
560 --> $DIR/numeric-suffix.rs:272:15
562 LL | foo::<u8>(42.0_f64);
563 | --------- ^^^^^^^^ expected `u8`, found `f64`
565 | arguments to this function are incorrect
567 note: function defined here
568 --> $DIR/numeric-suffix.rs:3:4
570 LL | fn foo<N>(_x: N) {}
572 help: change the type of the numeric literal from `f64` to `u8`
574 LL | foo::<u8>(42u8);
577 error[E0308]: mismatched types
578 --> $DIR/numeric-suffix.rs:276:15
580 LL | foo::<u8>(42.0_f32);
581 | --------- ^^^^^^^^ expected `u8`, found `f32`
583 | arguments to this function are incorrect
585 note: function defined here
586 --> $DIR/numeric-suffix.rs:3:4
588 LL | fn foo<N>(_x: N) {}
590 help: change the type of the numeric literal from `f32` to `u8`
592 LL | foo::<u8>(42u8);
595 error[E0308]: mismatched types
596 --> $DIR/numeric-suffix.rs:281:15
598 LL | foo::<i8>(42_usize);
599 | --------- ^^^^^^^^ expected `i8`, found `usize`
601 | arguments to this function are incorrect
603 note: function defined here
604 --> $DIR/numeric-suffix.rs:3:4
606 LL | fn foo<N>(_x: N) {}
608 help: change the type of the numeric literal from `usize` to `i8`
610 LL | foo::<i8>(42_i8);
613 error[E0308]: mismatched types
614 --> $DIR/numeric-suffix.rs:285:15
616 LL | foo::<i8>(42_u64);
617 | --------- ^^^^^^ expected `i8`, found `u64`
619 | arguments to this function are incorrect
621 note: function defined here
622 --> $DIR/numeric-suffix.rs:3:4
624 LL | fn foo<N>(_x: N) {}
626 help: change the type of the numeric literal from `u64` to `i8`
628 LL | foo::<i8>(42_i8);
631 error[E0308]: mismatched types
632 --> $DIR/numeric-suffix.rs:289:15
634 LL | foo::<i8>(42_u32);
635 | --------- ^^^^^^ expected `i8`, found `u32`
637 | arguments to this function are incorrect
639 note: function defined here
640 --> $DIR/numeric-suffix.rs:3:4
642 LL | fn foo<N>(_x: N) {}
644 help: change the type of the numeric literal from `u32` to `i8`
646 LL | foo::<i8>(42_i8);
649 error[E0308]: mismatched types
650 --> $DIR/numeric-suffix.rs:293:15
652 LL | foo::<i8>(42_u16);
653 | --------- ^^^^^^ expected `i8`, found `u16`
655 | arguments to this function are incorrect
657 note: function defined here
658 --> $DIR/numeric-suffix.rs:3:4
660 LL | fn foo<N>(_x: N) {}
662 help: change the type of the numeric literal from `u16` to `i8`
664 LL | foo::<i8>(42_i8);
667 error[E0308]: mismatched types
668 --> $DIR/numeric-suffix.rs:297:15
670 LL | foo::<i8>(42_u8);
671 | --------- ^^^^^ expected `i8`, found `u8`
673 | arguments to this function are incorrect
675 note: function defined here
676 --> $DIR/numeric-suffix.rs:3:4
678 LL | fn foo<N>(_x: N) {}
680 help: change the type of the numeric literal from `u8` to `i8`
682 LL | foo::<i8>(42_i8);
685 error[E0308]: mismatched types
686 --> $DIR/numeric-suffix.rs:301:15
688 LL | foo::<i8>(42_isize);
689 | --------- ^^^^^^^^ expected `i8`, found `isize`
691 | arguments to this function are incorrect
693 note: function defined here
694 --> $DIR/numeric-suffix.rs:3:4
696 LL | fn foo<N>(_x: N) {}
698 help: change the type of the numeric literal from `isize` to `i8`
700 LL | foo::<i8>(42_i8);
703 error[E0308]: mismatched types
704 --> $DIR/numeric-suffix.rs:305:15
706 LL | foo::<i8>(42_i64);
707 | --------- ^^^^^^ expected `i8`, found `i64`
709 | arguments to this function are incorrect
711 note: function defined here
712 --> $DIR/numeric-suffix.rs:3:4
714 LL | fn foo<N>(_x: N) {}
716 help: change the type of the numeric literal from `i64` to `i8`
718 LL | foo::<i8>(42_i8);
721 error[E0308]: mismatched types
722 --> $DIR/numeric-suffix.rs:309:15
724 LL | foo::<i8>(42_i32);
725 | --------- ^^^^^^ expected `i8`, found `i32`
727 | arguments to this function are incorrect
729 note: function defined here
730 --> $DIR/numeric-suffix.rs:3:4
732 LL | fn foo<N>(_x: N) {}
734 help: change the type of the numeric literal from `i32` to `i8`
736 LL | foo::<i8>(42_i8);
739 error[E0308]: mismatched types
740 --> $DIR/numeric-suffix.rs:313:15
742 LL | foo::<i8>(42_i16);
743 | --------- ^^^^^^ expected `i8`, found `i16`
745 | arguments to this function are incorrect
747 note: function defined here
748 --> $DIR/numeric-suffix.rs:3:4
750 LL | fn foo<N>(_x: N) {}
752 help: change the type of the numeric literal from `i16` to `i8`
754 LL | foo::<i8>(42_i8);
757 error[E0308]: mismatched types
758 --> $DIR/numeric-suffix.rs:318:15
760 LL | foo::<i8>(42.0_f64);
761 | --------- ^^^^^^^^ expected `i8`, found `f64`
763 | arguments to this function are incorrect
765 note: function defined here
766 --> $DIR/numeric-suffix.rs:3:4
768 LL | fn foo<N>(_x: N) {}
770 help: change the type of the numeric literal from `f64` to `i8`
772 LL | foo::<i8>(42i8);
775 error[E0308]: mismatched types
776 --> $DIR/numeric-suffix.rs:322:15
778 LL | foo::<i8>(42.0_f32);
779 | --------- ^^^^^^^^ expected `i8`, found `f32`
781 | arguments to this function are incorrect
783 note: function defined here
784 --> $DIR/numeric-suffix.rs:3:4
786 LL | fn foo<N>(_x: N) {}
788 help: change the type of the numeric literal from `f32` to `i8`
790 LL | foo::<i8>(42i8);
793 error[E0308]: mismatched types
794 --> $DIR/numeric-suffix.rs:327:16
796 LL | foo::<f64>(42_usize);
797 | ---------- ^^^^^^^^ expected `f64`, found `usize`
799 | arguments to this function are incorrect
801 note: function defined here
802 --> $DIR/numeric-suffix.rs:3:4
804 LL | fn foo<N>(_x: N) {}
806 help: change the type of the numeric literal from `usize` to `f64`
808 LL | foo::<f64>(42_f64);
811 error[E0308]: mismatched types
812 --> $DIR/numeric-suffix.rs:331:16
814 LL | foo::<f64>(42_u64);
815 | ---------- ^^^^^^ expected `f64`, found `u64`
817 | arguments to this function are incorrect
819 note: function defined here
820 --> $DIR/numeric-suffix.rs:3:4
822 LL | fn foo<N>(_x: N) {}
824 help: change the type of the numeric literal from `u64` to `f64`
826 LL | foo::<f64>(42_f64);
829 error[E0308]: mismatched types
830 --> $DIR/numeric-suffix.rs:335:16
832 LL | foo::<f64>(42_u32);
833 | ---------- ^^^^^^ expected `f64`, found `u32`
835 | arguments to this function are incorrect
837 note: function defined here
838 --> $DIR/numeric-suffix.rs:3:4
840 LL | fn foo<N>(_x: N) {}
842 help: you can convert a `u32` to an `f64`, producing the floating point representation of the integer
844 LL | foo::<f64>(42_u32.into());
847 error[E0308]: mismatched types
848 --> $DIR/numeric-suffix.rs:339:16
850 LL | foo::<f64>(42_u16);
851 | ---------- ^^^^^^ expected `f64`, found `u16`
853 | arguments to this function are incorrect
855 note: function defined here
856 --> $DIR/numeric-suffix.rs:3:4
858 LL | fn foo<N>(_x: N) {}
860 help: you can convert a `u16` to an `f64`, producing the floating point representation of the integer
862 LL | foo::<f64>(42_u16.into());
865 error[E0308]: mismatched types
866 --> $DIR/numeric-suffix.rs:343:16
868 LL | foo::<f64>(42_u8);
869 | ---------- ^^^^^ expected `f64`, found `u8`
871 | arguments to this function are incorrect
873 note: function defined here
874 --> $DIR/numeric-suffix.rs:3:4
876 LL | fn foo<N>(_x: N) {}
878 help: you can convert a `u8` to an `f64`, producing the floating point representation of the integer
880 LL | foo::<f64>(42_u8.into());
883 error[E0308]: mismatched types
884 --> $DIR/numeric-suffix.rs:347:16
886 LL | foo::<f64>(42_isize);
887 | ---------- ^^^^^^^^ expected `f64`, found `isize`
889 | arguments to this function are incorrect
891 note: function defined here
892 --> $DIR/numeric-suffix.rs:3:4
894 LL | fn foo<N>(_x: N) {}
896 help: change the type of the numeric literal from `isize` to `f64`
898 LL | foo::<f64>(42_f64);
901 error[E0308]: mismatched types
902 --> $DIR/numeric-suffix.rs:351:16
904 LL | foo::<f64>(42_i64);
905 | ---------- ^^^^^^ expected `f64`, found `i64`
907 | arguments to this function are incorrect
909 note: function defined here
910 --> $DIR/numeric-suffix.rs:3:4
912 LL | fn foo<N>(_x: N) {}
914 help: change the type of the numeric literal from `i64` to `f64`
916 LL | foo::<f64>(42_f64);
919 error[E0308]: mismatched types
920 --> $DIR/numeric-suffix.rs:355:16
922 LL | foo::<f64>(42_i32);
923 | ---------- ^^^^^^ expected `f64`, found `i32`
925 | arguments to this function are incorrect
927 note: function defined here
928 --> $DIR/numeric-suffix.rs:3:4
930 LL | fn foo<N>(_x: N) {}
932 help: you can convert an `i32` to an `f64`, producing the floating point representation of the integer
934 LL | foo::<f64>(42_i32.into());
937 error[E0308]: mismatched types
938 --> $DIR/numeric-suffix.rs:359:16
940 LL | foo::<f64>(42_i16);
941 | ---------- ^^^^^^ expected `f64`, found `i16`
943 | arguments to this function are incorrect
945 note: function defined here
946 --> $DIR/numeric-suffix.rs:3:4
948 LL | fn foo<N>(_x: N) {}
950 help: you can convert an `i16` to an `f64`, producing the floating point representation of the integer
952 LL | foo::<f64>(42_i16.into());
955 error[E0308]: mismatched types
956 --> $DIR/numeric-suffix.rs:363:16
958 LL | foo::<f64>(42_i8);
959 | ---------- ^^^^^ expected `f64`, found `i8`
961 | arguments to this function are incorrect
963 note: function defined here
964 --> $DIR/numeric-suffix.rs:3:4
966 LL | fn foo<N>(_x: N) {}
968 help: you can convert an `i8` to an `f64`, producing the floating point representation of the integer
970 LL | foo::<f64>(42_i8.into());
973 error[E0308]: mismatched types
974 --> $DIR/numeric-suffix.rs:368:16
976 LL | foo::<f64>(42.0_f32);
977 | ---------- ^^^^^^^^ expected `f64`, found `f32`
979 | arguments to this function are incorrect
981 note: function defined here
982 --> $DIR/numeric-suffix.rs:3:4
984 LL | fn foo<N>(_x: N) {}
986 help: change the type of the numeric literal from `f32` to `f64`
988 LL | foo::<f64>(42.0_f64);
991 error[E0308]: mismatched types
992 --> $DIR/numeric-suffix.rs:373:16
994 LL | foo::<f32>(42_usize);
995 | ---------- ^^^^^^^^ expected `f32`, found `usize`
997 | arguments to this function are incorrect
999 note: function defined here
1000 --> $DIR/numeric-suffix.rs:3:4
1002 LL | fn foo<N>(_x: N) {}
1004 help: change the type of the numeric literal from `usize` to `f32`
1006 LL | foo::<f32>(42_f32);
1009 error[E0308]: mismatched types
1010 --> $DIR/numeric-suffix.rs:377:16
1012 LL | foo::<f32>(42_u64);
1013 | ---------- ^^^^^^ expected `f32`, found `u64`
1015 | arguments to this function are incorrect
1017 note: function defined here
1018 --> $DIR/numeric-suffix.rs:3:4
1020 LL | fn foo<N>(_x: N) {}
1022 help: change the type of the numeric literal from `u64` to `f32`
1024 LL | foo::<f32>(42_f32);
1027 error[E0308]: mismatched types
1028 --> $DIR/numeric-suffix.rs:381:16
1030 LL | foo::<f32>(42_u32);
1031 | ---------- ^^^^^^ expected `f32`, found `u32`
1033 | arguments to this function are incorrect
1035 note: function defined here
1036 --> $DIR/numeric-suffix.rs:3:4
1038 LL | fn foo<N>(_x: N) {}
1040 help: change the type of the numeric literal from `u32` to `f32`
1042 LL | foo::<f32>(42_f32);
1045 error[E0308]: mismatched types
1046 --> $DIR/numeric-suffix.rs:385:16
1048 LL | foo::<f32>(42_u16);
1049 | ---------- ^^^^^^ expected `f32`, found `u16`
1051 | arguments to this function are incorrect
1053 note: function defined here
1054 --> $DIR/numeric-suffix.rs:3:4
1056 LL | fn foo<N>(_x: N) {}
1058 help: you can convert a `u16` to an `f32`, producing the floating point representation of the integer
1060 LL | foo::<f32>(42_u16.into());
1063 error[E0308]: mismatched types
1064 --> $DIR/numeric-suffix.rs:389:16
1066 LL | foo::<f32>(42_u8);
1067 | ---------- ^^^^^ expected `f32`, found `u8`
1069 | arguments to this function are incorrect
1071 note: function defined here
1072 --> $DIR/numeric-suffix.rs:3:4
1074 LL | fn foo<N>(_x: N) {}
1076 help: you can convert a `u8` to an `f32`, producing the floating point representation of the integer
1078 LL | foo::<f32>(42_u8.into());
1081 error[E0308]: mismatched types
1082 --> $DIR/numeric-suffix.rs:393:16
1084 LL | foo::<f32>(42_isize);
1085 | ---------- ^^^^^^^^ expected `f32`, found `isize`
1087 | arguments to this function are incorrect
1089 note: function defined here
1090 --> $DIR/numeric-suffix.rs:3:4
1092 LL | fn foo<N>(_x: N) {}
1094 help: change the type of the numeric literal from `isize` to `f32`
1096 LL | foo::<f32>(42_f32);
1099 error[E0308]: mismatched types
1100 --> $DIR/numeric-suffix.rs:397:16
1102 LL | foo::<f32>(42_i64);
1103 | ---------- ^^^^^^ expected `f32`, found `i64`
1105 | arguments to this function are incorrect
1107 note: function defined here
1108 --> $DIR/numeric-suffix.rs:3:4
1110 LL | fn foo<N>(_x: N) {}
1112 help: change the type of the numeric literal from `i64` to `f32`
1114 LL | foo::<f32>(42_f32);
1117 error[E0308]: mismatched types
1118 --> $DIR/numeric-suffix.rs:401:16
1120 LL | foo::<f32>(42_i32);
1121 | ---------- ^^^^^^ expected `f32`, found `i32`
1123 | arguments to this function are incorrect
1125 note: function defined here
1126 --> $DIR/numeric-suffix.rs:3:4
1128 LL | fn foo<N>(_x: N) {}
1130 help: change the type of the numeric literal from `i32` to `f32`
1132 LL | foo::<f32>(42_f32);
1135 error[E0308]: mismatched types
1136 --> $DIR/numeric-suffix.rs:405:16
1138 LL | foo::<f32>(42_i16);
1139 | ---------- ^^^^^^ expected `f32`, found `i16`
1141 | arguments to this function are incorrect
1143 note: function defined here
1144 --> $DIR/numeric-suffix.rs:3:4
1146 LL | fn foo<N>(_x: N) {}
1148 help: you can convert an `i16` to an `f32`, producing the floating point representation of the integer
1150 LL | foo::<f32>(42_i16.into());
1153 error[E0308]: mismatched types
1154 --> $DIR/numeric-suffix.rs:409:16
1156 LL | foo::<f32>(42_i8);
1157 | ---------- ^^^^^ expected `f32`, found `i8`
1159 | arguments to this function are incorrect
1161 note: function defined here
1162 --> $DIR/numeric-suffix.rs:3:4
1164 LL | fn foo<N>(_x: N) {}
1166 help: you can convert an `i8` to an `f32`, producing the floating point representation of the integer
1168 LL | foo::<f32>(42_i8.into());
1171 error[E0308]: mismatched types
1172 --> $DIR/numeric-suffix.rs:413:16
1174 LL | foo::<f32>(42.0_f64);
1175 | ---------- ^^^^^^^^ expected `f32`, found `f64`
1177 | arguments to this function are incorrect
1179 note: function defined here
1180 --> $DIR/numeric-suffix.rs:3:4
1182 LL | fn foo<N>(_x: N) {}
1184 help: change the type of the numeric literal from `f64` to `f32`
1186 LL | foo::<f32>(42.0_f32);
1189 error[E0308]: mismatched types
1190 --> $DIR/numeric-suffix.rs:419:16
1192 LL | foo::<u32>(42_u8 as u16);
1193 | ---------- ^^^^^^^^^^^^ expected `u32`, found `u16`
1195 | arguments to this function are incorrect
1197 note: function defined here
1198 --> $DIR/numeric-suffix.rs:3:4
1200 LL | fn foo<N>(_x: N) {}
1202 help: you can convert a `u16` to a `u32`
1204 LL | foo::<u32>((42_u8 as u16).into());
1207 error[E0308]: mismatched types
1208 --> $DIR/numeric-suffix.rs:423:16
1210 LL | foo::<i32>(-42_i8);
1211 | ---------- ^^^^^^ expected `i32`, found `i8`
1213 | arguments to this function are incorrect
1215 note: function defined here
1216 --> $DIR/numeric-suffix.rs:3:4
1218 LL | fn foo<N>(_x: N) {}
1220 help: you can convert an `i8` to an `i32`
1222 LL | foo::<i32>((-42_i8).into());
1225 error: aborting due to 68 previous errors
1227 For more information about this error, try `rustc --explain E0308`.