]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integer-literal-suffix-inference.stderr
Rollup merge of #80733 - steffahn:prettify_pin_links, r=jyn514
[rust.git] / src / test / ui / integer-literal-suffix-inference.stderr
1 error[E0308]: mismatched types
2   --> $DIR/integer-literal-suffix-inference.rs:38:11
3    |
4 LL |     id_i8(a16);
5    |           ^^^ expected `i8`, found `i16`
6    |
7 help: you can convert an `i16` to an `i8` and panic if the converted value doesn't fit
8    |
9 LL |     id_i8(a16.try_into().unwrap());
10    |           ^^^^^^^^^^^^^^^^^^^^^^^
11
12 error[E0308]: mismatched types
13   --> $DIR/integer-literal-suffix-inference.rs:41:11
14    |
15 LL |     id_i8(a32);
16    |           ^^^ expected `i8`, found `i32`
17    |
18 help: you can convert an `i32` to an `i8` and panic if the converted value doesn't fit
19    |
20 LL |     id_i8(a32.try_into().unwrap());
21    |           ^^^^^^^^^^^^^^^^^^^^^^^
22
23 error[E0308]: mismatched types
24   --> $DIR/integer-literal-suffix-inference.rs:44:11
25    |
26 LL |     id_i8(a64);
27    |           ^^^ expected `i8`, found `i64`
28    |
29 help: you can convert an `i64` to an `i8` and panic if the converted value doesn't fit
30    |
31 LL |     id_i8(a64.try_into().unwrap());
32    |           ^^^^^^^^^^^^^^^^^^^^^^^
33
34 error[E0308]: mismatched types
35   --> $DIR/integer-literal-suffix-inference.rs:47:11
36    |
37 LL |     id_i8(asize);
38    |           ^^^^^ expected `i8`, found `isize`
39    |
40 help: you can convert an `isize` to an `i8` and panic if the converted value doesn't fit
41    |
42 LL |     id_i8(asize.try_into().unwrap());
43    |           ^^^^^^^^^^^^^^^^^^^^^^^^^
44
45 error[E0308]: mismatched types
46   --> $DIR/integer-literal-suffix-inference.rs:51:12
47    |
48 LL |     id_i16(a8);
49    |            ^^
50    |            |
51    |            expected `i16`, found `i8`
52    |            help: you can convert an `i8` to an `i16`: `a8.into()`
53
54 error[E0308]: mismatched types
55   --> $DIR/integer-literal-suffix-inference.rs:55:12
56    |
57 LL |     id_i16(a32);
58    |            ^^^ expected `i16`, found `i32`
59    |
60 help: you can convert an `i32` to an `i16` and panic if the converted value doesn't fit
61    |
62 LL |     id_i16(a32.try_into().unwrap());
63    |            ^^^^^^^^^^^^^^^^^^^^^^^
64
65 error[E0308]: mismatched types
66   --> $DIR/integer-literal-suffix-inference.rs:58:12
67    |
68 LL |     id_i16(a64);
69    |            ^^^ expected `i16`, found `i64`
70    |
71 help: you can convert an `i64` to an `i16` and panic if the converted value doesn't fit
72    |
73 LL |     id_i16(a64.try_into().unwrap());
74    |            ^^^^^^^^^^^^^^^^^^^^^^^
75
76 error[E0308]: mismatched types
77   --> $DIR/integer-literal-suffix-inference.rs:61:12
78    |
79 LL |     id_i16(asize);
80    |            ^^^^^ expected `i16`, found `isize`
81    |
82 help: you can convert an `isize` to an `i16` and panic if the converted value doesn't fit
83    |
84 LL |     id_i16(asize.try_into().unwrap());
85    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
86
87 error[E0308]: mismatched types
88   --> $DIR/integer-literal-suffix-inference.rs:65:12
89    |
90 LL |     id_i32(a8);
91    |            ^^
92    |            |
93    |            expected `i32`, found `i8`
94    |            help: you can convert an `i8` to an `i32`: `a8.into()`
95
96 error[E0308]: mismatched types
97   --> $DIR/integer-literal-suffix-inference.rs:68:12
98    |
99 LL |     id_i32(a16);
100    |            ^^^
101    |            |
102    |            expected `i32`, found `i16`
103    |            help: you can convert an `i16` to an `i32`: `a16.into()`
104
105 error[E0308]: mismatched types
106   --> $DIR/integer-literal-suffix-inference.rs:72:12
107    |
108 LL |     id_i32(a64);
109    |            ^^^ expected `i32`, found `i64`
110    |
111 help: you can convert an `i64` to an `i32` and panic if the converted value doesn't fit
112    |
113 LL |     id_i32(a64.try_into().unwrap());
114    |            ^^^^^^^^^^^^^^^^^^^^^^^
115
116 error[E0308]: mismatched types
117   --> $DIR/integer-literal-suffix-inference.rs:75:12
118    |
119 LL |     id_i32(asize);
120    |            ^^^^^ expected `i32`, found `isize`
121    |
122 help: you can convert an `isize` to an `i32` and panic if the converted value doesn't fit
123    |
124 LL |     id_i32(asize.try_into().unwrap());
125    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
126
127 error[E0308]: mismatched types
128   --> $DIR/integer-literal-suffix-inference.rs:79:12
129    |
130 LL |     id_i64(a8);
131    |            ^^
132    |            |
133    |            expected `i64`, found `i8`
134    |            help: you can convert an `i8` to an `i64`: `a8.into()`
135
136 error[E0308]: mismatched types
137   --> $DIR/integer-literal-suffix-inference.rs:82:12
138    |
139 LL |     id_i64(a16);
140    |            ^^^
141    |            |
142    |            expected `i64`, found `i16`
143    |            help: you can convert an `i16` to an `i64`: `a16.into()`
144
145 error[E0308]: mismatched types
146   --> $DIR/integer-literal-suffix-inference.rs:85:12
147    |
148 LL |     id_i64(a32);
149    |            ^^^
150    |            |
151    |            expected `i64`, found `i32`
152    |            help: you can convert an `i32` to an `i64`: `a32.into()`
153
154 error[E0308]: mismatched types
155   --> $DIR/integer-literal-suffix-inference.rs:89:12
156    |
157 LL |     id_i64(asize);
158    |            ^^^^^ expected `i64`, found `isize`
159    |
160 help: you can convert an `isize` to an `i64` and panic if the converted value doesn't fit
161    |
162 LL |     id_i64(asize.try_into().unwrap());
163    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
164
165 error[E0308]: mismatched types
166   --> $DIR/integer-literal-suffix-inference.rs:93:14
167    |
168 LL |     id_isize(a8);
169    |              ^^
170    |              |
171    |              expected `isize`, found `i8`
172    |              help: you can convert an `i8` to an `isize`: `a8.into()`
173
174 error[E0308]: mismatched types
175   --> $DIR/integer-literal-suffix-inference.rs:96:14
176    |
177 LL |     id_isize(a16);
178    |              ^^^
179    |              |
180    |              expected `isize`, found `i16`
181    |              help: you can convert an `i16` to an `isize`: `a16.into()`
182
183 error[E0308]: mismatched types
184   --> $DIR/integer-literal-suffix-inference.rs:99:14
185    |
186 LL |     id_isize(a32);
187    |              ^^^ expected `isize`, found `i32`
188    |
189 help: you can convert an `i32` to an `isize` and panic if the converted value doesn't fit
190    |
191 LL |     id_isize(a32.try_into().unwrap());
192    |              ^^^^^^^^^^^^^^^^^^^^^^^
193
194 error[E0308]: mismatched types
195   --> $DIR/integer-literal-suffix-inference.rs:102:14
196    |
197 LL |     id_isize(a64);
198    |              ^^^ expected `isize`, found `i64`
199    |
200 help: you can convert an `i64` to an `isize` and panic if the converted value doesn't fit
201    |
202 LL |     id_isize(a64.try_into().unwrap());
203    |              ^^^^^^^^^^^^^^^^^^^^^^^
204
205 error[E0308]: mismatched types
206   --> $DIR/integer-literal-suffix-inference.rs:108:11
207    |
208 LL |     id_i8(c16);
209    |           ^^^ expected `i8`, found `i16`
210    |
211 help: you can convert an `i16` to an `i8` and panic if the converted value doesn't fit
212    |
213 LL |     id_i8(c16.try_into().unwrap());
214    |           ^^^^^^^^^^^^^^^^^^^^^^^
215
216 error[E0308]: mismatched types
217   --> $DIR/integer-literal-suffix-inference.rs:111:11
218    |
219 LL |     id_i8(c32);
220    |           ^^^ expected `i8`, found `i32`
221    |
222 help: you can convert an `i32` to an `i8` and panic if the converted value doesn't fit
223    |
224 LL |     id_i8(c32.try_into().unwrap());
225    |           ^^^^^^^^^^^^^^^^^^^^^^^
226
227 error[E0308]: mismatched types
228   --> $DIR/integer-literal-suffix-inference.rs:114:11
229    |
230 LL |     id_i8(c64);
231    |           ^^^ expected `i8`, found `i64`
232    |
233 help: you can convert an `i64` to an `i8` and panic if the converted value doesn't fit
234    |
235 LL |     id_i8(c64.try_into().unwrap());
236    |           ^^^^^^^^^^^^^^^^^^^^^^^
237
238 error[E0308]: mismatched types
239   --> $DIR/integer-literal-suffix-inference.rs:118:12
240    |
241 LL |     id_i16(c8);
242    |            ^^
243    |            |
244    |            expected `i16`, found `i8`
245    |            help: you can convert an `i8` to an `i16`: `c8.into()`
246
247 error[E0308]: mismatched types
248   --> $DIR/integer-literal-suffix-inference.rs:122:12
249    |
250 LL |     id_i16(c32);
251    |            ^^^ expected `i16`, found `i32`
252    |
253 help: you can convert an `i32` to an `i16` and panic if the converted value doesn't fit
254    |
255 LL |     id_i16(c32.try_into().unwrap());
256    |            ^^^^^^^^^^^^^^^^^^^^^^^
257
258 error[E0308]: mismatched types
259   --> $DIR/integer-literal-suffix-inference.rs:125:12
260    |
261 LL |     id_i16(c64);
262    |            ^^^ expected `i16`, found `i64`
263    |
264 help: you can convert an `i64` to an `i16` and panic if the converted value doesn't fit
265    |
266 LL |     id_i16(c64.try_into().unwrap());
267    |            ^^^^^^^^^^^^^^^^^^^^^^^
268
269 error[E0308]: mismatched types
270   --> $DIR/integer-literal-suffix-inference.rs:129:12
271    |
272 LL |     id_i32(c8);
273    |            ^^
274    |            |
275    |            expected `i32`, found `i8`
276    |            help: you can convert an `i8` to an `i32`: `c8.into()`
277
278 error[E0308]: mismatched types
279   --> $DIR/integer-literal-suffix-inference.rs:132:12
280    |
281 LL |     id_i32(c16);
282    |            ^^^
283    |            |
284    |            expected `i32`, found `i16`
285    |            help: you can convert an `i16` to an `i32`: `c16.into()`
286
287 error[E0308]: mismatched types
288   --> $DIR/integer-literal-suffix-inference.rs:136:12
289    |
290 LL |     id_i32(c64);
291    |            ^^^ expected `i32`, found `i64`
292    |
293 help: you can convert an `i64` to an `i32` and panic if the converted value doesn't fit
294    |
295 LL |     id_i32(c64.try_into().unwrap());
296    |            ^^^^^^^^^^^^^^^^^^^^^^^
297
298 error[E0308]: mismatched types
299   --> $DIR/integer-literal-suffix-inference.rs:140:12
300    |
301 LL |     id_i64(a8);
302    |            ^^
303    |            |
304    |            expected `i64`, found `i8`
305    |            help: you can convert an `i8` to an `i64`: `a8.into()`
306
307 error[E0308]: mismatched types
308   --> $DIR/integer-literal-suffix-inference.rs:143:12
309    |
310 LL |     id_i64(a16);
311    |            ^^^
312    |            |
313    |            expected `i64`, found `i16`
314    |            help: you can convert an `i16` to an `i64`: `a16.into()`
315
316 error[E0308]: mismatched types
317   --> $DIR/integer-literal-suffix-inference.rs:146:12
318    |
319 LL |     id_i64(a32);
320    |            ^^^
321    |            |
322    |            expected `i64`, found `i32`
323    |            help: you can convert an `i32` to an `i64`: `a32.into()`
324
325 error[E0308]: mismatched types
326   --> $DIR/integer-literal-suffix-inference.rs:152:11
327    |
328 LL |     id_u8(b16);
329    |           ^^^ expected `u8`, found `u16`
330    |
331 help: you can convert a `u16` to a `u8` and panic if the converted value doesn't fit
332    |
333 LL |     id_u8(b16.try_into().unwrap());
334    |           ^^^^^^^^^^^^^^^^^^^^^^^
335
336 error[E0308]: mismatched types
337   --> $DIR/integer-literal-suffix-inference.rs:155:11
338    |
339 LL |     id_u8(b32);
340    |           ^^^ expected `u8`, found `u32`
341    |
342 help: you can convert a `u32` to a `u8` and panic if the converted value doesn't fit
343    |
344 LL |     id_u8(b32.try_into().unwrap());
345    |           ^^^^^^^^^^^^^^^^^^^^^^^
346
347 error[E0308]: mismatched types
348   --> $DIR/integer-literal-suffix-inference.rs:158:11
349    |
350 LL |     id_u8(b64);
351    |           ^^^ expected `u8`, found `u64`
352    |
353 help: you can convert a `u64` to a `u8` and panic if the converted value doesn't fit
354    |
355 LL |     id_u8(b64.try_into().unwrap());
356    |           ^^^^^^^^^^^^^^^^^^^^^^^
357
358 error[E0308]: mismatched types
359   --> $DIR/integer-literal-suffix-inference.rs:161:11
360    |
361 LL |     id_u8(bsize);
362    |           ^^^^^ expected `u8`, found `usize`
363    |
364 help: you can convert a `usize` to a `u8` and panic if the converted value doesn't fit
365    |
366 LL |     id_u8(bsize.try_into().unwrap());
367    |           ^^^^^^^^^^^^^^^^^^^^^^^^^
368
369 error[E0308]: mismatched types
370   --> $DIR/integer-literal-suffix-inference.rs:165:12
371    |
372 LL |     id_u16(b8);
373    |            ^^
374    |            |
375    |            expected `u16`, found `u8`
376    |            help: you can convert a `u8` to a `u16`: `b8.into()`
377
378 error[E0308]: mismatched types
379   --> $DIR/integer-literal-suffix-inference.rs:169:12
380    |
381 LL |     id_u16(b32);
382    |            ^^^ expected `u16`, found `u32`
383    |
384 help: you can convert a `u32` to a `u16` and panic if the converted value doesn't fit
385    |
386 LL |     id_u16(b32.try_into().unwrap());
387    |            ^^^^^^^^^^^^^^^^^^^^^^^
388
389 error[E0308]: mismatched types
390   --> $DIR/integer-literal-suffix-inference.rs:172:12
391    |
392 LL |     id_u16(b64);
393    |            ^^^ expected `u16`, found `u64`
394    |
395 help: you can convert a `u64` to a `u16` and panic if the converted value doesn't fit
396    |
397 LL |     id_u16(b64.try_into().unwrap());
398    |            ^^^^^^^^^^^^^^^^^^^^^^^
399
400 error[E0308]: mismatched types
401   --> $DIR/integer-literal-suffix-inference.rs:175:12
402    |
403 LL |     id_u16(bsize);
404    |            ^^^^^ expected `u16`, found `usize`
405    |
406 help: you can convert a `usize` to a `u16` and panic if the converted value doesn't fit
407    |
408 LL |     id_u16(bsize.try_into().unwrap());
409    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
410
411 error[E0308]: mismatched types
412   --> $DIR/integer-literal-suffix-inference.rs:179:12
413    |
414 LL |     id_u32(b8);
415    |            ^^
416    |            |
417    |            expected `u32`, found `u8`
418    |            help: you can convert a `u8` to a `u32`: `b8.into()`
419
420 error[E0308]: mismatched types
421   --> $DIR/integer-literal-suffix-inference.rs:182:12
422    |
423 LL |     id_u32(b16);
424    |            ^^^
425    |            |
426    |            expected `u32`, found `u16`
427    |            help: you can convert a `u16` to a `u32`: `b16.into()`
428
429 error[E0308]: mismatched types
430   --> $DIR/integer-literal-suffix-inference.rs:186:12
431    |
432 LL |     id_u32(b64);
433    |            ^^^ expected `u32`, found `u64`
434    |
435 help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
436    |
437 LL |     id_u32(b64.try_into().unwrap());
438    |            ^^^^^^^^^^^^^^^^^^^^^^^
439
440 error[E0308]: mismatched types
441   --> $DIR/integer-literal-suffix-inference.rs:189:12
442    |
443 LL |     id_u32(bsize);
444    |            ^^^^^ expected `u32`, found `usize`
445    |
446 help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
447    |
448 LL |     id_u32(bsize.try_into().unwrap());
449    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
450
451 error[E0308]: mismatched types
452   --> $DIR/integer-literal-suffix-inference.rs:193:12
453    |
454 LL |     id_u64(b8);
455    |            ^^
456    |            |
457    |            expected `u64`, found `u8`
458    |            help: you can convert a `u8` to a `u64`: `b8.into()`
459
460 error[E0308]: mismatched types
461   --> $DIR/integer-literal-suffix-inference.rs:196:12
462    |
463 LL |     id_u64(b16);
464    |            ^^^
465    |            |
466    |            expected `u64`, found `u16`
467    |            help: you can convert a `u16` to a `u64`: `b16.into()`
468
469 error[E0308]: mismatched types
470   --> $DIR/integer-literal-suffix-inference.rs:199:12
471    |
472 LL |     id_u64(b32);
473    |            ^^^
474    |            |
475    |            expected `u64`, found `u32`
476    |            help: you can convert a `u32` to a `u64`: `b32.into()`
477
478 error[E0308]: mismatched types
479   --> $DIR/integer-literal-suffix-inference.rs:203:12
480    |
481 LL |     id_u64(bsize);
482    |            ^^^^^ expected `u64`, found `usize`
483    |
484 help: you can convert a `usize` to a `u64` and panic if the converted value doesn't fit
485    |
486 LL |     id_u64(bsize.try_into().unwrap());
487    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
488
489 error[E0308]: mismatched types
490   --> $DIR/integer-literal-suffix-inference.rs:207:14
491    |
492 LL |     id_usize(b8);
493    |              ^^
494    |              |
495    |              expected `usize`, found `u8`
496    |              help: you can convert a `u8` to a `usize`: `b8.into()`
497
498 error[E0308]: mismatched types
499   --> $DIR/integer-literal-suffix-inference.rs:210:14
500    |
501 LL |     id_usize(b16);
502    |              ^^^
503    |              |
504    |              expected `usize`, found `u16`
505    |              help: you can convert a `u16` to a `usize`: `b16.into()`
506
507 error[E0308]: mismatched types
508   --> $DIR/integer-literal-suffix-inference.rs:213:14
509    |
510 LL |     id_usize(b32);
511    |              ^^^ expected `usize`, found `u32`
512    |
513 help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
514    |
515 LL |     id_usize(b32.try_into().unwrap());
516    |              ^^^^^^^^^^^^^^^^^^^^^^^
517
518 error[E0308]: mismatched types
519   --> $DIR/integer-literal-suffix-inference.rs:216:14
520    |
521 LL |     id_usize(b64);
522    |              ^^^ expected `usize`, found `u64`
523    |
524 help: you can convert a `u64` to a `usize` and panic if the converted value doesn't fit
525    |
526 LL |     id_usize(b64.try_into().unwrap());
527    |              ^^^^^^^^^^^^^^^^^^^^^^^
528
529 error: aborting due to 52 previous errors
530
531 For more information about this error, try `rustc --explain E0308`.