fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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