@@ -328,7 +328,7 @@ error[E0308]: mismatched types
328
328
LL | id_u8(b16);
329
329
| ^^^ expected `u8`, found `u16`
330
330
|
331
- help: you can convert an `u16` to `u8` and panic if the converted value wouldn't fit
331
+ help: you can convert a `u16` to `u8` and panic if the converted value wouldn't fit
332
332
|
333
333
LL | id_u8(b16.try_into().unwrap());
334
334
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -339,7 +339,7 @@ error[E0308]: mismatched types
339
339
LL | id_u8(b32);
340
340
| ^^^ expected `u8`, found `u32`
341
341
|
342
- help: you can convert an `u32` to `u8` and panic if the converted value wouldn't fit
342
+ help: you can convert a `u32` to `u8` and panic if the converted value wouldn't fit
343
343
|
344
344
LL | id_u8(b32.try_into().unwrap());
345
345
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -350,7 +350,7 @@ error[E0308]: mismatched types
350
350
LL | id_u8(b64);
351
351
| ^^^ expected `u8`, found `u64`
352
352
|
353
- help: you can convert an `u64` to `u8` and panic if the converted value wouldn't fit
353
+ help: you can convert a `u64` to `u8` and panic if the converted value wouldn't fit
354
354
|
355
355
LL | id_u8(b64.try_into().unwrap());
356
356
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -361,7 +361,7 @@ error[E0308]: mismatched types
361
361
LL | id_u8(bsize);
362
362
| ^^^^^ expected `u8`, found `usize`
363
363
|
364
- help: you can convert an `usize` to `u8` and panic if the converted value wouldn't fit
364
+ help: you can convert a `usize` to `u8` and panic if the converted value wouldn't fit
365
365
|
366
366
LL | id_u8(bsize.try_into().unwrap());
367
367
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -373,15 +373,15 @@ LL | id_u16(b8);
373
373
| ^^
374
374
| |
375
375
| expected `u16`, found `u8`
376
- | help: you can convert an `u8` to `u16`: `b8.into()`
376
+ | help: you can convert a `u8` to `u16`: `b8.into()`
377
377
378
378
error[E0308]: mismatched types
379
379
--> $DIR/integer-literal-suffix-inference.rs:169:12
380
380
|
381
381
LL | id_u16(b32);
382
382
| ^^^ expected `u16`, found `u32`
383
383
|
384
- help: you can convert an `u32` to `u16` and panic if the converted value wouldn't fit
384
+ help: you can convert a `u32` to `u16` and panic if the converted value wouldn't fit
385
385
|
386
386
LL | id_u16(b32.try_into().unwrap());
387
387
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -392,7 +392,7 @@ error[E0308]: mismatched types
392
392
LL | id_u16(b64);
393
393
| ^^^ expected `u16`, found `u64`
394
394
|
395
- help: you can convert an `u64` to `u16` and panic if the converted value wouldn't fit
395
+ help: you can convert a `u64` to `u16` and panic if the converted value wouldn't fit
396
396
|
397
397
LL | id_u16(b64.try_into().unwrap());
398
398
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -403,7 +403,7 @@ error[E0308]: mismatched types
403
403
LL | id_u16(bsize);
404
404
| ^^^^^ expected `u16`, found `usize`
405
405
|
406
- help: you can convert an `usize` to `u16` and panic if the converted value wouldn't fit
406
+ help: you can convert a `usize` to `u16` and panic if the converted value wouldn't fit
407
407
|
408
408
LL | id_u16(bsize.try_into().unwrap());
409
409
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -415,7 +415,7 @@ LL | id_u32(b8);
415
415
| ^^
416
416
| |
417
417
| expected `u32`, found `u8`
418
- | help: you can convert an `u8` to `u32`: `b8.into()`
418
+ | help: you can convert a `u8` to `u32`: `b8.into()`
419
419
420
420
error[E0308]: mismatched types
421
421
--> $DIR/integer-literal-suffix-inference.rs:182:12
@@ -424,15 +424,15 @@ LL | id_u32(b16);
424
424
| ^^^
425
425
| |
426
426
| expected `u32`, found `u16`
427
- | help: you can convert an `u16` to `u32`: `b16.into()`
427
+ | help: you can convert a `u16` to `u32`: `b16.into()`
428
428
429
429
error[E0308]: mismatched types
430
430
--> $DIR/integer-literal-suffix-inference.rs:186:12
431
431
|
432
432
LL | id_u32(b64);
433
433
| ^^^ expected `u32`, found `u64`
434
434
|
435
- help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
435
+ help: you can convert a `u64` to `u32` and panic if the converted value wouldn't fit
436
436
|
437
437
LL | id_u32(b64.try_into().unwrap());
438
438
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -443,7 +443,7 @@ error[E0308]: mismatched types
443
443
LL | id_u32(bsize);
444
444
| ^^^^^ expected `u32`, found `usize`
445
445
|
446
- help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit
446
+ help: you can convert a `usize` to `u32` and panic if the converted value wouldn't fit
447
447
|
448
448
LL | id_u32(bsize.try_into().unwrap());
449
449
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -455,7 +455,7 @@ LL | id_u64(b8);
455
455
| ^^
456
456
| |
457
457
| expected `u64`, found `u8`
458
- | help: you can convert an `u8` to `u64`: `b8.into()`
458
+ | help: you can convert a `u8` to `u64`: `b8.into()`
459
459
460
460
error[E0308]: mismatched types
461
461
--> $DIR/integer-literal-suffix-inference.rs:196:12
@@ -464,7 +464,7 @@ LL | id_u64(b16);
464
464
| ^^^
465
465
| |
466
466
| expected `u64`, found `u16`
467
- | help: you can convert an `u16` to `u64`: `b16.into()`
467
+ | help: you can convert a `u16` to `u64`: `b16.into()`
468
468
469
469
error[E0308]: mismatched types
470
470
--> $DIR/integer-literal-suffix-inference.rs:199:12
@@ -473,15 +473,15 @@ LL | id_u64(b32);
473
473
| ^^^
474
474
| |
475
475
| expected `u64`, found `u32`
476
- | help: you can convert an `u32` to `u64`: `b32.into()`
476
+ | help: you can convert a `u32` to `u64`: `b32.into()`
477
477
478
478
error[E0308]: mismatched types
479
479
--> $DIR/integer-literal-suffix-inference.rs:203:12
480
480
|
481
481
LL | id_u64(bsize);
482
482
| ^^^^^ expected `u64`, found `usize`
483
483
|
484
- help: you can convert an `usize` to `u64` and panic if the converted value wouldn't fit
484
+ help: you can convert a `usize` to `u64` and panic if the converted value wouldn't fit
485
485
|
486
486
LL | id_u64(bsize.try_into().unwrap());
487
487
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -493,7 +493,7 @@ LL | id_usize(b8);
493
493
| ^^
494
494
| |
495
495
| expected `usize`, found `u8`
496
- | help: you can convert an `u8` to `usize`: `b8.into()`
496
+ | help: you can convert a `u8` to `usize`: `b8.into()`
497
497
498
498
error[E0308]: mismatched types
499
499
--> $DIR/integer-literal-suffix-inference.rs:210:14
@@ -502,15 +502,15 @@ LL | id_usize(b16);
502
502
| ^^^
503
503
| |
504
504
| expected `usize`, found `u16`
505
- | help: you can convert an `u16` to `usize`: `b16.into()`
505
+ | help: you can convert a `u16` to `usize`: `b16.into()`
506
506
507
507
error[E0308]: mismatched types
508
508
--> $DIR/integer-literal-suffix-inference.rs:213:14
509
509
|
510
510
LL | id_usize(b32);
511
511
| ^^^ expected `usize`, found `u32`
512
512
|
513
- help: you can convert an `u32` to `usize` and panic if the converted value wouldn't fit
513
+ help: you can convert a `u32` to `usize` and panic if the converted value wouldn't fit
514
514
|
515
515
LL | id_usize(b32.try_into().unwrap());
516
516
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -521,7 +521,7 @@ error[E0308]: mismatched types
521
521
LL | id_usize(b64);
522
522
| ^^^ expected `usize`, found `u64`
523
523
|
524
- help: you can convert an `u64` to `usize` and panic if the converted value wouldn't fit
524
+ help: you can convert a `u64` to `usize` and panic if the converted value wouldn't fit
525
525
|
526
526
LL | id_usize(b64.try_into().unwrap());
527
527
| ^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments