]> git.proxmox.com Git - rustc.git/blob - src/test/ui/numeric/numeric-suffix/numeric-suffix.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / numeric / numeric-suffix / numeric-suffix.stderr
1 error[E0308]: mismatched types
2 --> $DIR/numeric-suffix.rs:143:16
3 |
4 LL | foo::<u16>(42_usize);
5 | ---------- ^^^^^^^^ expected `u16`, found `usize`
6 | |
7 | arguments to this function are incorrect
8 |
9 note: function defined here
10 --> $DIR/numeric-suffix.rs:3:4
11 |
12 LL | fn foo<N>(_x: N) {}
13 | ^^^ -----
14 help: change the type of the numeric literal from `usize` to `u16`
15 |
16 LL | foo::<u16>(42_u16);
17 | ~~~
18
19 error[E0308]: mismatched types
20 --> $DIR/numeric-suffix.rs:147:16
21 |
22 LL | foo::<u16>(42_u64);
23 | ---------- ^^^^^^ expected `u16`, found `u64`
24 | |
25 | arguments to this function are incorrect
26 |
27 note: function defined here
28 --> $DIR/numeric-suffix.rs:3:4
29 |
30 LL | fn foo<N>(_x: N) {}
31 | ^^^ -----
32 help: change the type of the numeric literal from `u64` to `u16`
33 |
34 LL | foo::<u16>(42_u16);
35 | ~~~
36
37 error[E0308]: mismatched types
38 --> $DIR/numeric-suffix.rs:151:16
39 |
40 LL | foo::<u16>(42_u32);
41 | ---------- ^^^^^^ expected `u16`, found `u32`
42 | |
43 | arguments to this function are incorrect
44 |
45 note: function defined here
46 --> $DIR/numeric-suffix.rs:3:4
47 |
48 LL | fn foo<N>(_x: N) {}
49 | ^^^ -----
50 help: change the type of the numeric literal from `u32` to `u16`
51 |
52 LL | foo::<u16>(42_u16);
53 | ~~~
54
55 error[E0308]: mismatched types
56 --> $DIR/numeric-suffix.rs:156:16
57 |
58 LL | foo::<u16>(42_u8);
59 | ---------- ^^^^^ expected `u16`, found `u8`
60 | |
61 | arguments to this function are incorrect
62 |
63 note: function defined here
64 --> $DIR/numeric-suffix.rs:3:4
65 |
66 LL | fn foo<N>(_x: N) {}
67 | ^^^ -----
68 help: change the type of the numeric literal from `u8` to `u16`
69 |
70 LL | foo::<u16>(42_u16);
71 | ~~~
72
73 error[E0308]: mismatched types
74 --> $DIR/numeric-suffix.rs:160:16
75 |
76 LL | foo::<u16>(42_isize);
77 | ---------- ^^^^^^^^ expected `u16`, found `isize`
78 | |
79 | arguments to this function are incorrect
80 |
81 note: function defined here
82 --> $DIR/numeric-suffix.rs:3:4
83 |
84 LL | fn foo<N>(_x: N) {}
85 | ^^^ -----
86 help: change the type of the numeric literal from `isize` to `u16`
87 |
88 LL | foo::<u16>(42_u16);
89 | ~~~
90
91 error[E0308]: mismatched types
92 --> $DIR/numeric-suffix.rs:164:16
93 |
94 LL | foo::<u16>(42_i64);
95 | ---------- ^^^^^^ expected `u16`, found `i64`
96 | |
97 | arguments to this function are incorrect
98 |
99 note: function defined here
100 --> $DIR/numeric-suffix.rs:3:4
101 |
102 LL | fn foo<N>(_x: N) {}
103 | ^^^ -----
104 help: change the type of the numeric literal from `i64` to `u16`
105 |
106 LL | foo::<u16>(42_u16);
107 | ~~~
108
109 error[E0308]: mismatched types
110 --> $DIR/numeric-suffix.rs:168:16
111 |
112 LL | foo::<u16>(42_i32);
113 | ---------- ^^^^^^ expected `u16`, found `i32`
114 | |
115 | arguments to this function are incorrect
116 |
117 note: function defined here
118 --> $DIR/numeric-suffix.rs:3:4
119 |
120 LL | fn foo<N>(_x: N) {}
121 | ^^^ -----
122 help: change the type of the numeric literal from `i32` to `u16`
123 |
124 LL | foo::<u16>(42_u16);
125 | ~~~
126
127 error[E0308]: mismatched types
128 --> $DIR/numeric-suffix.rs:172:16
129 |
130 LL | foo::<u16>(42_i16);
131 | ---------- ^^^^^^ expected `u16`, found `i16`
132 | |
133 | arguments to this function are incorrect
134 |
135 note: function defined here
136 --> $DIR/numeric-suffix.rs:3:4
137 |
138 LL | fn foo<N>(_x: N) {}
139 | ^^^ -----
140 help: change the type of the numeric literal from `i16` to `u16`
141 |
142 LL | foo::<u16>(42_u16);
143 | ~~~
144
145 error[E0308]: mismatched types
146 --> $DIR/numeric-suffix.rs:176:16
147 |
148 LL | foo::<u16>(42_i8);
149 | ---------- ^^^^^ expected `u16`, found `i8`
150 | |
151 | arguments to this function are incorrect
152 |
153 note: function defined here
154 --> $DIR/numeric-suffix.rs:3:4
155 |
156 LL | fn foo<N>(_x: N) {}
157 | ^^^ -----
158 help: change the type of the numeric literal from `i8` to `u16`
159 |
160 LL | foo::<u16>(42_u16);
161 | ~~~
162
163 error[E0308]: mismatched types
164 --> $DIR/numeric-suffix.rs:180:16
165 |
166 LL | foo::<u16>(42.0_f64);
167 | ---------- ^^^^^^^^ expected `u16`, found `f64`
168 | |
169 | arguments to this function are incorrect
170 |
171 note: function defined here
172 --> $DIR/numeric-suffix.rs:3:4
173 |
174 LL | fn foo<N>(_x: N) {}
175 | ^^^ -----
176 help: change the type of the numeric literal from `f64` to `u16`
177 |
178 LL | foo::<u16>(42u16);
179 | ~~~
180
181 error[E0308]: mismatched types
182 --> $DIR/numeric-suffix.rs:184:16
183 |
184 LL | foo::<u16>(42.0_f32);
185 | ---------- ^^^^^^^^ expected `u16`, found `f32`
186 | |
187 | arguments to this function are incorrect
188 |
189 note: function defined here
190 --> $DIR/numeric-suffix.rs:3:4
191 |
192 LL | fn foo<N>(_x: N) {}
193 | ^^^ -----
194 help: change the type of the numeric literal from `f32` to `u16`
195 |
196 LL | foo::<u16>(42u16);
197 | ~~~
198
199 error[E0308]: mismatched types
200 --> $DIR/numeric-suffix.rs:189:16
201 |
202 LL | foo::<i16>(42_usize);
203 | ---------- ^^^^^^^^ expected `i16`, found `usize`
204 | |
205 | arguments to this function are incorrect
206 |
207 note: function defined here
208 --> $DIR/numeric-suffix.rs:3:4
209 |
210 LL | fn foo<N>(_x: N) {}
211 | ^^^ -----
212 help: change the type of the numeric literal from `usize` to `i16`
213 |
214 LL | foo::<i16>(42_i16);
215 | ~~~
216
217 error[E0308]: mismatched types
218 --> $DIR/numeric-suffix.rs:193:16
219 |
220 LL | foo::<i16>(42_u64);
221 | ---------- ^^^^^^ expected `i16`, found `u64`
222 | |
223 | arguments to this function are incorrect
224 |
225 note: function defined here
226 --> $DIR/numeric-suffix.rs:3:4
227 |
228 LL | fn foo<N>(_x: N) {}
229 | ^^^ -----
230 help: change the type of the numeric literal from `u64` to `i16`
231 |
232 LL | foo::<i16>(42_i16);
233 | ~~~
234
235 error[E0308]: mismatched types
236 --> $DIR/numeric-suffix.rs:197:16
237 |
238 LL | foo::<i16>(42_u32);
239 | ---------- ^^^^^^ expected `i16`, found `u32`
240 | |
241 | arguments to this function are incorrect
242 |
243 note: function defined here
244 --> $DIR/numeric-suffix.rs:3:4
245 |
246 LL | fn foo<N>(_x: N) {}
247 | ^^^ -----
248 help: change the type of the numeric literal from `u32` to `i16`
249 |
250 LL | foo::<i16>(42_i16);
251 | ~~~
252
253 error[E0308]: mismatched types
254 --> $DIR/numeric-suffix.rs:201:16
255 |
256 LL | foo::<i16>(42_u16);
257 | ---------- ^^^^^^ expected `i16`, found `u16`
258 | |
259 | arguments to this function are incorrect
260 |
261 note: function defined here
262 --> $DIR/numeric-suffix.rs:3:4
263 |
264 LL | fn foo<N>(_x: N) {}
265 | ^^^ -----
266 help: change the type of the numeric literal from `u16` to `i16`
267 |
268 LL | foo::<i16>(42_i16);
269 | ~~~
270
271 error[E0308]: mismatched types
272 --> $DIR/numeric-suffix.rs:205:16
273 |
274 LL | foo::<i16>(42_u8);
275 | ---------- ^^^^^ expected `i16`, found `u8`
276 | |
277 | arguments to this function are incorrect
278 |
279 note: function defined here
280 --> $DIR/numeric-suffix.rs:3:4
281 |
282 LL | fn foo<N>(_x: N) {}
283 | ^^^ -----
284 help: change the type of the numeric literal from `u8` to `i16`
285 |
286 LL | foo::<i16>(42_i16);
287 | ~~~
288
289 error[E0308]: mismatched types
290 --> $DIR/numeric-suffix.rs:209:16
291 |
292 LL | foo::<i16>(42_isize);
293 | ---------- ^^^^^^^^ expected `i16`, found `isize`
294 | |
295 | arguments to this function are incorrect
296 |
297 note: function defined here
298 --> $DIR/numeric-suffix.rs:3:4
299 |
300 LL | fn foo<N>(_x: N) {}
301 | ^^^ -----
302 help: change the type of the numeric literal from `isize` to `i16`
303 |
304 LL | foo::<i16>(42_i16);
305 | ~~~
306
307 error[E0308]: mismatched types
308 --> $DIR/numeric-suffix.rs:213:16
309 |
310 LL | foo::<i16>(42_i64);
311 | ---------- ^^^^^^ expected `i16`, found `i64`
312 | |
313 | arguments to this function are incorrect
314 |
315 note: function defined here
316 --> $DIR/numeric-suffix.rs:3:4
317 |
318 LL | fn foo<N>(_x: N) {}
319 | ^^^ -----
320 help: change the type of the numeric literal from `i64` to `i16`
321 |
322 LL | foo::<i16>(42_i16);
323 | ~~~
324
325 error[E0308]: mismatched types
326 --> $DIR/numeric-suffix.rs:217:16
327 |
328 LL | foo::<i16>(42_i32);
329 | ---------- ^^^^^^ expected `i16`, found `i32`
330 | |
331 | arguments to this function are incorrect
332 |
333 note: function defined here
334 --> $DIR/numeric-suffix.rs:3:4
335 |
336 LL | fn foo<N>(_x: N) {}
337 | ^^^ -----
338 help: change the type of the numeric literal from `i32` to `i16`
339 |
340 LL | foo::<i16>(42_i16);
341 | ~~~
342
343 error[E0308]: mismatched types
344 --> $DIR/numeric-suffix.rs:222:16
345 |
346 LL | foo::<i16>(42_i8);
347 | ---------- ^^^^^ expected `i16`, found `i8`
348 | |
349 | arguments to this function are incorrect
350 |
351 note: function defined here
352 --> $DIR/numeric-suffix.rs:3:4
353 |
354 LL | fn foo<N>(_x: N) {}
355 | ^^^ -----
356 help: change the type of the numeric literal from `i8` to `i16`
357 |
358 LL | foo::<i16>(42_i16);
359 | ~~~
360
361 error[E0308]: mismatched types
362 --> $DIR/numeric-suffix.rs:226:16
363 |
364 LL | foo::<i16>(42.0_f64);
365 | ---------- ^^^^^^^^ expected `i16`, found `f64`
366 | |
367 | arguments to this function are incorrect
368 |
369 note: function defined here
370 --> $DIR/numeric-suffix.rs:3:4
371 |
372 LL | fn foo<N>(_x: N) {}
373 | ^^^ -----
374 help: change the type of the numeric literal from `f64` to `i16`
375 |
376 LL | foo::<i16>(42i16);
377 | ~~~
378
379 error[E0308]: mismatched types
380 --> $DIR/numeric-suffix.rs:230:16
381 |
382 LL | foo::<i16>(42.0_f32);
383 | ---------- ^^^^^^^^ expected `i16`, found `f32`
384 | |
385 | arguments to this function are incorrect
386 |
387 note: function defined here
388 --> $DIR/numeric-suffix.rs:3:4
389 |
390 LL | fn foo<N>(_x: N) {}
391 | ^^^ -----
392 help: change the type of the numeric literal from `f32` to `i16`
393 |
394 LL | foo::<i16>(42i16);
395 | ~~~
396
397 error[E0308]: mismatched types
398 --> $DIR/numeric-suffix.rs:235:15
399 |
400 LL | foo::<u8>(42_usize);
401 | --------- ^^^^^^^^ expected `u8`, found `usize`
402 | |
403 | arguments to this function are incorrect
404 |
405 note: function defined here
406 --> $DIR/numeric-suffix.rs:3:4
407 |
408 LL | fn foo<N>(_x: N) {}
409 | ^^^ -----
410 help: change the type of the numeric literal from `usize` to `u8`
411 |
412 LL | foo::<u8>(42_u8);
413 | ~~
414
415 error[E0308]: mismatched types
416 --> $DIR/numeric-suffix.rs:239:15
417 |
418 LL | foo::<u8>(42_u64);
419 | --------- ^^^^^^ expected `u8`, found `u64`
420 | |
421 | arguments to this function are incorrect
422 |
423 note: function defined here
424 --> $DIR/numeric-suffix.rs:3:4
425 |
426 LL | fn foo<N>(_x: N) {}
427 | ^^^ -----
428 help: change the type of the numeric literal from `u64` to `u8`
429 |
430 LL | foo::<u8>(42_u8);
431 | ~~
432
433 error[E0308]: mismatched types
434 --> $DIR/numeric-suffix.rs:243:15
435 |
436 LL | foo::<u8>(42_u32);
437 | --------- ^^^^^^ expected `u8`, found `u32`
438 | |
439 | arguments to this function are incorrect
440 |
441 note: function defined here
442 --> $DIR/numeric-suffix.rs:3:4
443 |
444 LL | fn foo<N>(_x: N) {}
445 | ^^^ -----
446 help: change the type of the numeric literal from `u32` to `u8`
447 |
448 LL | foo::<u8>(42_u8);
449 | ~~
450
451 error[E0308]: mismatched types
452 --> $DIR/numeric-suffix.rs:247:15
453 |
454 LL | foo::<u8>(42_u16);
455 | --------- ^^^^^^ expected `u8`, found `u16`
456 | |
457 | arguments to this function are incorrect
458 |
459 note: function defined here
460 --> $DIR/numeric-suffix.rs:3:4
461 |
462 LL | fn foo<N>(_x: N) {}
463 | ^^^ -----
464 help: change the type of the numeric literal from `u16` to `u8`
465 |
466 LL | foo::<u8>(42_u8);
467 | ~~
468
469 error[E0308]: mismatched types
470 --> $DIR/numeric-suffix.rs:252:15
471 |
472 LL | foo::<u8>(42_isize);
473 | --------- ^^^^^^^^ expected `u8`, found `isize`
474 | |
475 | arguments to this function are incorrect
476 |
477 note: function defined here
478 --> $DIR/numeric-suffix.rs:3:4
479 |
480 LL | fn foo<N>(_x: N) {}
481 | ^^^ -----
482 help: change the type of the numeric literal from `isize` to `u8`
483 |
484 LL | foo::<u8>(42_u8);
485 | ~~
486
487 error[E0308]: mismatched types
488 --> $DIR/numeric-suffix.rs:256:15
489 |
490 LL | foo::<u8>(42_i64);
491 | --------- ^^^^^^ expected `u8`, found `i64`
492 | |
493 | arguments to this function are incorrect
494 |
495 note: function defined here
496 --> $DIR/numeric-suffix.rs:3:4
497 |
498 LL | fn foo<N>(_x: N) {}
499 | ^^^ -----
500 help: change the type of the numeric literal from `i64` to `u8`
501 |
502 LL | foo::<u8>(42_u8);
503 | ~~
504
505 error[E0308]: mismatched types
506 --> $DIR/numeric-suffix.rs:260:15
507 |
508 LL | foo::<u8>(42_i32);
509 | --------- ^^^^^^ expected `u8`, found `i32`
510 | |
511 | arguments to this function are incorrect
512 |
513 note: function defined here
514 --> $DIR/numeric-suffix.rs:3:4
515 |
516 LL | fn foo<N>(_x: N) {}
517 | ^^^ -----
518 help: change the type of the numeric literal from `i32` to `u8`
519 |
520 LL | foo::<u8>(42_u8);
521 | ~~
522
523 error[E0308]: mismatched types
524 --> $DIR/numeric-suffix.rs:264:15
525 |
526 LL | foo::<u8>(42_i16);
527 | --------- ^^^^^^ expected `u8`, found `i16`
528 | |
529 | arguments to this function are incorrect
530 |
531 note: function defined here
532 --> $DIR/numeric-suffix.rs:3:4
533 |
534 LL | fn foo<N>(_x: N) {}
535 | ^^^ -----
536 help: change the type of the numeric literal from `i16` to `u8`
537 |
538 LL | foo::<u8>(42_u8);
539 | ~~
540
541 error[E0308]: mismatched types
542 --> $DIR/numeric-suffix.rs:268:15
543 |
544 LL | foo::<u8>(42_i8);
545 | --------- ^^^^^ expected `u8`, found `i8`
546 | |
547 | arguments to this function are incorrect
548 |
549 note: function defined here
550 --> $DIR/numeric-suffix.rs:3:4
551 |
552 LL | fn foo<N>(_x: N) {}
553 | ^^^ -----
554 help: change the type of the numeric literal from `i8` to `u8`
555 |
556 LL | foo::<u8>(42_u8);
557 | ~~
558
559 error[E0308]: mismatched types
560 --> $DIR/numeric-suffix.rs:272:15
561 |
562 LL | foo::<u8>(42.0_f64);
563 | --------- ^^^^^^^^ expected `u8`, found `f64`
564 | |
565 | arguments to this function are incorrect
566 |
567 note: function defined here
568 --> $DIR/numeric-suffix.rs:3:4
569 |
570 LL | fn foo<N>(_x: N) {}
571 | ^^^ -----
572 help: change the type of the numeric literal from `f64` to `u8`
573 |
574 LL | foo::<u8>(42u8);
575 | ~~
576
577 error[E0308]: mismatched types
578 --> $DIR/numeric-suffix.rs:276:15
579 |
580 LL | foo::<u8>(42.0_f32);
581 | --------- ^^^^^^^^ expected `u8`, found `f32`
582 | |
583 | arguments to this function are incorrect
584 |
585 note: function defined here
586 --> $DIR/numeric-suffix.rs:3:4
587 |
588 LL | fn foo<N>(_x: N) {}
589 | ^^^ -----
590 help: change the type of the numeric literal from `f32` to `u8`
591 |
592 LL | foo::<u8>(42u8);
593 | ~~
594
595 error[E0308]: mismatched types
596 --> $DIR/numeric-suffix.rs:281:15
597 |
598 LL | foo::<i8>(42_usize);
599 | --------- ^^^^^^^^ expected `i8`, found `usize`
600 | |
601 | arguments to this function are incorrect
602 |
603 note: function defined here
604 --> $DIR/numeric-suffix.rs:3:4
605 |
606 LL | fn foo<N>(_x: N) {}
607 | ^^^ -----
608 help: change the type of the numeric literal from `usize` to `i8`
609 |
610 LL | foo::<i8>(42_i8);
611 | ~~
612
613 error[E0308]: mismatched types
614 --> $DIR/numeric-suffix.rs:285:15
615 |
616 LL | foo::<i8>(42_u64);
617 | --------- ^^^^^^ expected `i8`, found `u64`
618 | |
619 | arguments to this function are incorrect
620 |
621 note: function defined here
622 --> $DIR/numeric-suffix.rs:3:4
623 |
624 LL | fn foo<N>(_x: N) {}
625 | ^^^ -----
626 help: change the type of the numeric literal from `u64` to `i8`
627 |
628 LL | foo::<i8>(42_i8);
629 | ~~
630
631 error[E0308]: mismatched types
632 --> $DIR/numeric-suffix.rs:289:15
633 |
634 LL | foo::<i8>(42_u32);
635 | --------- ^^^^^^ expected `i8`, found `u32`
636 | |
637 | arguments to this function are incorrect
638 |
639 note: function defined here
640 --> $DIR/numeric-suffix.rs:3:4
641 |
642 LL | fn foo<N>(_x: N) {}
643 | ^^^ -----
644 help: change the type of the numeric literal from `u32` to `i8`
645 |
646 LL | foo::<i8>(42_i8);
647 | ~~
648
649 error[E0308]: mismatched types
650 --> $DIR/numeric-suffix.rs:293:15
651 |
652 LL | foo::<i8>(42_u16);
653 | --------- ^^^^^^ expected `i8`, found `u16`
654 | |
655 | arguments to this function are incorrect
656 |
657 note: function defined here
658 --> $DIR/numeric-suffix.rs:3:4
659 |
660 LL | fn foo<N>(_x: N) {}
661 | ^^^ -----
662 help: change the type of the numeric literal from `u16` to `i8`
663 |
664 LL | foo::<i8>(42_i8);
665 | ~~
666
667 error[E0308]: mismatched types
668 --> $DIR/numeric-suffix.rs:297:15
669 |
670 LL | foo::<i8>(42_u8);
671 | --------- ^^^^^ expected `i8`, found `u8`
672 | |
673 | arguments to this function are incorrect
674 |
675 note: function defined here
676 --> $DIR/numeric-suffix.rs:3:4
677 |
678 LL | fn foo<N>(_x: N) {}
679 | ^^^ -----
680 help: change the type of the numeric literal from `u8` to `i8`
681 |
682 LL | foo::<i8>(42_i8);
683 | ~~
684
685 error[E0308]: mismatched types
686 --> $DIR/numeric-suffix.rs:301:15
687 |
688 LL | foo::<i8>(42_isize);
689 | --------- ^^^^^^^^ expected `i8`, found `isize`
690 | |
691 | arguments to this function are incorrect
692 |
693 note: function defined here
694 --> $DIR/numeric-suffix.rs:3:4
695 |
696 LL | fn foo<N>(_x: N) {}
697 | ^^^ -----
698 help: change the type of the numeric literal from `isize` to `i8`
699 |
700 LL | foo::<i8>(42_i8);
701 | ~~
702
703 error[E0308]: mismatched types
704 --> $DIR/numeric-suffix.rs:305:15
705 |
706 LL | foo::<i8>(42_i64);
707 | --------- ^^^^^^ expected `i8`, found `i64`
708 | |
709 | arguments to this function are incorrect
710 |
711 note: function defined here
712 --> $DIR/numeric-suffix.rs:3:4
713 |
714 LL | fn foo<N>(_x: N) {}
715 | ^^^ -----
716 help: change the type of the numeric literal from `i64` to `i8`
717 |
718 LL | foo::<i8>(42_i8);
719 | ~~
720
721 error[E0308]: mismatched types
722 --> $DIR/numeric-suffix.rs:309:15
723 |
724 LL | foo::<i8>(42_i32);
725 | --------- ^^^^^^ expected `i8`, found `i32`
726 | |
727 | arguments to this function are incorrect
728 |
729 note: function defined here
730 --> $DIR/numeric-suffix.rs:3:4
731 |
732 LL | fn foo<N>(_x: N) {}
733 | ^^^ -----
734 help: change the type of the numeric literal from `i32` to `i8`
735 |
736 LL | foo::<i8>(42_i8);
737 | ~~
738
739 error[E0308]: mismatched types
740 --> $DIR/numeric-suffix.rs:313:15
741 |
742 LL | foo::<i8>(42_i16);
743 | --------- ^^^^^^ expected `i8`, found `i16`
744 | |
745 | arguments to this function are incorrect
746 |
747 note: function defined here
748 --> $DIR/numeric-suffix.rs:3:4
749 |
750 LL | fn foo<N>(_x: N) {}
751 | ^^^ -----
752 help: change the type of the numeric literal from `i16` to `i8`
753 |
754 LL | foo::<i8>(42_i8);
755 | ~~
756
757 error[E0308]: mismatched types
758 --> $DIR/numeric-suffix.rs:318:15
759 |
760 LL | foo::<i8>(42.0_f64);
761 | --------- ^^^^^^^^ expected `i8`, found `f64`
762 | |
763 | arguments to this function are incorrect
764 |
765 note: function defined here
766 --> $DIR/numeric-suffix.rs:3:4
767 |
768 LL | fn foo<N>(_x: N) {}
769 | ^^^ -----
770 help: change the type of the numeric literal from `f64` to `i8`
771 |
772 LL | foo::<i8>(42i8);
773 | ~~
774
775 error[E0308]: mismatched types
776 --> $DIR/numeric-suffix.rs:322:15
777 |
778 LL | foo::<i8>(42.0_f32);
779 | --------- ^^^^^^^^ expected `i8`, found `f32`
780 | |
781 | arguments to this function are incorrect
782 |
783 note: function defined here
784 --> $DIR/numeric-suffix.rs:3:4
785 |
786 LL | fn foo<N>(_x: N) {}
787 | ^^^ -----
788 help: change the type of the numeric literal from `f32` to `i8`
789 |
790 LL | foo::<i8>(42i8);
791 | ~~
792
793 error[E0308]: mismatched types
794 --> $DIR/numeric-suffix.rs:327:16
795 |
796 LL | foo::<f64>(42_usize);
797 | ---------- ^^^^^^^^ expected `f64`, found `usize`
798 | |
799 | arguments to this function are incorrect
800 |
801 note: function defined here
802 --> $DIR/numeric-suffix.rs:3:4
803 |
804 LL | fn foo<N>(_x: N) {}
805 | ^^^ -----
806 help: change the type of the numeric literal from `usize` to `f64`
807 |
808 LL | foo::<f64>(42_f64);
809 | ~~~
810
811 error[E0308]: mismatched types
812 --> $DIR/numeric-suffix.rs:331:16
813 |
814 LL | foo::<f64>(42_u64);
815 | ---------- ^^^^^^ expected `f64`, found `u64`
816 | |
817 | arguments to this function are incorrect
818 |
819 note: function defined here
820 --> $DIR/numeric-suffix.rs:3:4
821 |
822 LL | fn foo<N>(_x: N) {}
823 | ^^^ -----
824 help: change the type of the numeric literal from `u64` to `f64`
825 |
826 LL | foo::<f64>(42_f64);
827 | ~~~
828
829 error[E0308]: mismatched types
830 --> $DIR/numeric-suffix.rs:335:16
831 |
832 LL | foo::<f64>(42_u32);
833 | ---------- ^^^^^^ expected `f64`, found `u32`
834 | |
835 | arguments to this function are incorrect
836 |
837 note: function defined here
838 --> $DIR/numeric-suffix.rs:3:4
839 |
840 LL | fn foo<N>(_x: N) {}
841 | ^^^ -----
842 help: you can convert a `u32` to an `f64`, producing the floating point representation of the integer
843 |
844 LL | foo::<f64>(42_u32.into());
845 | +++++++
846
847 error[E0308]: mismatched types
848 --> $DIR/numeric-suffix.rs:339:16
849 |
850 LL | foo::<f64>(42_u16);
851 | ---------- ^^^^^^ expected `f64`, found `u16`
852 | |
853 | arguments to this function are incorrect
854 |
855 note: function defined here
856 --> $DIR/numeric-suffix.rs:3:4
857 |
858 LL | fn foo<N>(_x: N) {}
859 | ^^^ -----
860 help: you can convert a `u16` to an `f64`, producing the floating point representation of the integer
861 |
862 LL | foo::<f64>(42_u16.into());
863 | +++++++
864
865 error[E0308]: mismatched types
866 --> $DIR/numeric-suffix.rs:343:16
867 |
868 LL | foo::<f64>(42_u8);
869 | ---------- ^^^^^ expected `f64`, found `u8`
870 | |
871 | arguments to this function are incorrect
872 |
873 note: function defined here
874 --> $DIR/numeric-suffix.rs:3:4
875 |
876 LL | fn foo<N>(_x: N) {}
877 | ^^^ -----
878 help: you can convert a `u8` to an `f64`, producing the floating point representation of the integer
879 |
880 LL | foo::<f64>(42_u8.into());
881 | +++++++
882
883 error[E0308]: mismatched types
884 --> $DIR/numeric-suffix.rs:347:16
885 |
886 LL | foo::<f64>(42_isize);
887 | ---------- ^^^^^^^^ expected `f64`, found `isize`
888 | |
889 | arguments to this function are incorrect
890 |
891 note: function defined here
892 --> $DIR/numeric-suffix.rs:3:4
893 |
894 LL | fn foo<N>(_x: N) {}
895 | ^^^ -----
896 help: change the type of the numeric literal from `isize` to `f64`
897 |
898 LL | foo::<f64>(42_f64);
899 | ~~~
900
901 error[E0308]: mismatched types
902 --> $DIR/numeric-suffix.rs:351:16
903 |
904 LL | foo::<f64>(42_i64);
905 | ---------- ^^^^^^ expected `f64`, found `i64`
906 | |
907 | arguments to this function are incorrect
908 |
909 note: function defined here
910 --> $DIR/numeric-suffix.rs:3:4
911 |
912 LL | fn foo<N>(_x: N) {}
913 | ^^^ -----
914 help: change the type of the numeric literal from `i64` to `f64`
915 |
916 LL | foo::<f64>(42_f64);
917 | ~~~
918
919 error[E0308]: mismatched types
920 --> $DIR/numeric-suffix.rs:355:16
921 |
922 LL | foo::<f64>(42_i32);
923 | ---------- ^^^^^^ expected `f64`, found `i32`
924 | |
925 | arguments to this function are incorrect
926 |
927 note: function defined here
928 --> $DIR/numeric-suffix.rs:3:4
929 |
930 LL | fn foo<N>(_x: N) {}
931 | ^^^ -----
932 help: you can convert an `i32` to an `f64`, producing the floating point representation of the integer
933 |
934 LL | foo::<f64>(42_i32.into());
935 | +++++++
936
937 error[E0308]: mismatched types
938 --> $DIR/numeric-suffix.rs:359:16
939 |
940 LL | foo::<f64>(42_i16);
941 | ---------- ^^^^^^ expected `f64`, found `i16`
942 | |
943 | arguments to this function are incorrect
944 |
945 note: function defined here
946 --> $DIR/numeric-suffix.rs:3:4
947 |
948 LL | fn foo<N>(_x: N) {}
949 | ^^^ -----
950 help: you can convert an `i16` to an `f64`, producing the floating point representation of the integer
951 |
952 LL | foo::<f64>(42_i16.into());
953 | +++++++
954
955 error[E0308]: mismatched types
956 --> $DIR/numeric-suffix.rs:363:16
957 |
958 LL | foo::<f64>(42_i8);
959 | ---------- ^^^^^ expected `f64`, found `i8`
960 | |
961 | arguments to this function are incorrect
962 |
963 note: function defined here
964 --> $DIR/numeric-suffix.rs:3:4
965 |
966 LL | fn foo<N>(_x: N) {}
967 | ^^^ -----
968 help: you can convert an `i8` to an `f64`, producing the floating point representation of the integer
969 |
970 LL | foo::<f64>(42_i8.into());
971 | +++++++
972
973 error[E0308]: mismatched types
974 --> $DIR/numeric-suffix.rs:368:16
975 |
976 LL | foo::<f64>(42.0_f32);
977 | ---------- ^^^^^^^^ expected `f64`, found `f32`
978 | |
979 | arguments to this function are incorrect
980 |
981 note: function defined here
982 --> $DIR/numeric-suffix.rs:3:4
983 |
984 LL | fn foo<N>(_x: N) {}
985 | ^^^ -----
986 help: change the type of the numeric literal from `f32` to `f64`
987 |
988 LL | foo::<f64>(42.0_f64);
989 | ~~~
990
991 error[E0308]: mismatched types
992 --> $DIR/numeric-suffix.rs:373:16
993 |
994 LL | foo::<f32>(42_usize);
995 | ---------- ^^^^^^^^ expected `f32`, found `usize`
996 | |
997 | arguments to this function are incorrect
998 |
999 note: function defined here
1000 --> $DIR/numeric-suffix.rs:3:4
1001 |
1002 LL | fn foo<N>(_x: N) {}
1003 | ^^^ -----
1004 help: change the type of the numeric literal from `usize` to `f32`
1005 |
1006 LL | foo::<f32>(42_f32);
1007 | ~~~
1008
1009 error[E0308]: mismatched types
1010 --> $DIR/numeric-suffix.rs:377:16
1011 |
1012 LL | foo::<f32>(42_u64);
1013 | ---------- ^^^^^^ expected `f32`, found `u64`
1014 | |
1015 | arguments to this function are incorrect
1016 |
1017 note: function defined here
1018 --> $DIR/numeric-suffix.rs:3:4
1019 |
1020 LL | fn foo<N>(_x: N) {}
1021 | ^^^ -----
1022 help: change the type of the numeric literal from `u64` to `f32`
1023 |
1024 LL | foo::<f32>(42_f32);
1025 | ~~~
1026
1027 error[E0308]: mismatched types
1028 --> $DIR/numeric-suffix.rs:381:16
1029 |
1030 LL | foo::<f32>(42_u32);
1031 | ---------- ^^^^^^ expected `f32`, found `u32`
1032 | |
1033 | arguments to this function are incorrect
1034 |
1035 note: function defined here
1036 --> $DIR/numeric-suffix.rs:3:4
1037 |
1038 LL | fn foo<N>(_x: N) {}
1039 | ^^^ -----
1040 help: change the type of the numeric literal from `u32` to `f32`
1041 |
1042 LL | foo::<f32>(42_f32);
1043 | ~~~
1044
1045 error[E0308]: mismatched types
1046 --> $DIR/numeric-suffix.rs:385:16
1047 |
1048 LL | foo::<f32>(42_u16);
1049 | ---------- ^^^^^^ expected `f32`, found `u16`
1050 | |
1051 | arguments to this function are incorrect
1052 |
1053 note: function defined here
1054 --> $DIR/numeric-suffix.rs:3:4
1055 |
1056 LL | fn foo<N>(_x: N) {}
1057 | ^^^ -----
1058 help: you can convert a `u16` to an `f32`, producing the floating point representation of the integer
1059 |
1060 LL | foo::<f32>(42_u16.into());
1061 | +++++++
1062
1063 error[E0308]: mismatched types
1064 --> $DIR/numeric-suffix.rs:389:16
1065 |
1066 LL | foo::<f32>(42_u8);
1067 | ---------- ^^^^^ expected `f32`, found `u8`
1068 | |
1069 | arguments to this function are incorrect
1070 |
1071 note: function defined here
1072 --> $DIR/numeric-suffix.rs:3:4
1073 |
1074 LL | fn foo<N>(_x: N) {}
1075 | ^^^ -----
1076 help: you can convert a `u8` to an `f32`, producing the floating point representation of the integer
1077 |
1078 LL | foo::<f32>(42_u8.into());
1079 | +++++++
1080
1081 error[E0308]: mismatched types
1082 --> $DIR/numeric-suffix.rs:393:16
1083 |
1084 LL | foo::<f32>(42_isize);
1085 | ---------- ^^^^^^^^ expected `f32`, found `isize`
1086 | |
1087 | arguments to this function are incorrect
1088 |
1089 note: function defined here
1090 --> $DIR/numeric-suffix.rs:3:4
1091 |
1092 LL | fn foo<N>(_x: N) {}
1093 | ^^^ -----
1094 help: change the type of the numeric literal from `isize` to `f32`
1095 |
1096 LL | foo::<f32>(42_f32);
1097 | ~~~
1098
1099 error[E0308]: mismatched types
1100 --> $DIR/numeric-suffix.rs:397:16
1101 |
1102 LL | foo::<f32>(42_i64);
1103 | ---------- ^^^^^^ expected `f32`, found `i64`
1104 | |
1105 | arguments to this function are incorrect
1106 |
1107 note: function defined here
1108 --> $DIR/numeric-suffix.rs:3:4
1109 |
1110 LL | fn foo<N>(_x: N) {}
1111 | ^^^ -----
1112 help: change the type of the numeric literal from `i64` to `f32`
1113 |
1114 LL | foo::<f32>(42_f32);
1115 | ~~~
1116
1117 error[E0308]: mismatched types
1118 --> $DIR/numeric-suffix.rs:401:16
1119 |
1120 LL | foo::<f32>(42_i32);
1121 | ---------- ^^^^^^ expected `f32`, found `i32`
1122 | |
1123 | arguments to this function are incorrect
1124 |
1125 note: function defined here
1126 --> $DIR/numeric-suffix.rs:3:4
1127 |
1128 LL | fn foo<N>(_x: N) {}
1129 | ^^^ -----
1130 help: change the type of the numeric literal from `i32` to `f32`
1131 |
1132 LL | foo::<f32>(42_f32);
1133 | ~~~
1134
1135 error[E0308]: mismatched types
1136 --> $DIR/numeric-suffix.rs:405:16
1137 |
1138 LL | foo::<f32>(42_i16);
1139 | ---------- ^^^^^^ expected `f32`, found `i16`
1140 | |
1141 | arguments to this function are incorrect
1142 |
1143 note: function defined here
1144 --> $DIR/numeric-suffix.rs:3:4
1145 |
1146 LL | fn foo<N>(_x: N) {}
1147 | ^^^ -----
1148 help: you can convert an `i16` to an `f32`, producing the floating point representation of the integer
1149 |
1150 LL | foo::<f32>(42_i16.into());
1151 | +++++++
1152
1153 error[E0308]: mismatched types
1154 --> $DIR/numeric-suffix.rs:409:16
1155 |
1156 LL | foo::<f32>(42_i8);
1157 | ---------- ^^^^^ expected `f32`, found `i8`
1158 | |
1159 | arguments to this function are incorrect
1160 |
1161 note: function defined here
1162 --> $DIR/numeric-suffix.rs:3:4
1163 |
1164 LL | fn foo<N>(_x: N) {}
1165 | ^^^ -----
1166 help: you can convert an `i8` to an `f32`, producing the floating point representation of the integer
1167 |
1168 LL | foo::<f32>(42_i8.into());
1169 | +++++++
1170
1171 error[E0308]: mismatched types
1172 --> $DIR/numeric-suffix.rs:413:16
1173 |
1174 LL | foo::<f32>(42.0_f64);
1175 | ---------- ^^^^^^^^ expected `f32`, found `f64`
1176 | |
1177 | arguments to this function are incorrect
1178 |
1179 note: function defined here
1180 --> $DIR/numeric-suffix.rs:3:4
1181 |
1182 LL | fn foo<N>(_x: N) {}
1183 | ^^^ -----
1184 help: change the type of the numeric literal from `f64` to `f32`
1185 |
1186 LL | foo::<f32>(42.0_f32);
1187 | ~~~
1188
1189 error[E0308]: mismatched types
1190 --> $DIR/numeric-suffix.rs:419:16
1191 |
1192 LL | foo::<u32>(42_u8 as u16);
1193 | ---------- ^^^^^^^^^^^^ expected `u32`, found `u16`
1194 | |
1195 | arguments to this function are incorrect
1196 |
1197 note: function defined here
1198 --> $DIR/numeric-suffix.rs:3:4
1199 |
1200 LL | fn foo<N>(_x: N) {}
1201 | ^^^ -----
1202 help: you can convert a `u16` to a `u32`
1203 |
1204 LL | foo::<u32>((42_u8 as u16).into());
1205 | + ++++++++
1206
1207 error[E0308]: mismatched types
1208 --> $DIR/numeric-suffix.rs:423:16
1209 |
1210 LL | foo::<i32>(-42_i8);
1211 | ---------- ^^^^^^ expected `i32`, found `i8`
1212 | |
1213 | arguments to this function are incorrect
1214 |
1215 note: function defined here
1216 --> $DIR/numeric-suffix.rs:3:4
1217 |
1218 LL | fn foo<N>(_x: N) {}
1219 | ^^^ -----
1220 help: you can convert an `i8` to an `i32`
1221 |
1222 LL | foo::<i32>((-42_i8).into());
1223 | + ++++++++
1224
1225 error: aborting due to 68 previous errors
1226
1227 For more information about this error, try `rustc --explain E0308`.