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