@@ -417,13 +417,17 @@ error[E0308]: mismatched types
417
417
--> $DIR/recover-range-pats.rs:21:12
418
418
|
419
419
LL | if let .0..Y = 0 {}
420
- | ^^^^^ expected integer, found floating-point number
420
+ | ^^ - this is of type `u8`
421
+ | |
422
+ | expected integer, found floating-point number
421
423
422
424
error[E0308]: mismatched types
423
- --> $DIR/recover-range-pats.rs:23:12
425
+ --> $DIR/recover-range-pats.rs:23:16
424
426
|
425
427
LL | if let X.. .0 = 0 {}
426
- | ^^^^^^ expected integer, found floating-point number
428
+ | - ^^ expected integer, found floating-point number
429
+ | |
430
+ | this is of type `u8`
427
431
428
432
error[E0029]: only char and numeric types are allowed in range patterns
429
433
--> $DIR/recover-range-pats.rs:32:12
@@ -445,13 +449,17 @@ error[E0308]: mismatched types
445
449
--> $DIR/recover-range-pats.rs:34:12
446
450
|
447
451
LL | if let .0..=Y = 0 {}
448
- | ^^^^^^ expected integer, found floating-point number
452
+ | ^^ - this is of type `u8`
453
+ | |
454
+ | expected integer, found floating-point number
449
455
450
456
error[E0308]: mismatched types
451
- --> $DIR/recover-range-pats.rs:36:12
457
+ --> $DIR/recover-range-pats.rs:36:16
452
458
|
453
459
LL | if let X..=.0 = 0 {}
454
- | ^^^^^^ expected integer, found floating-point number
460
+ | - ^^ expected integer, found floating-point number
461
+ | |
462
+ | this is of type `u8`
455
463
456
464
error[E0029]: only char and numeric types are allowed in range patterns
457
465
--> $DIR/recover-range-pats.rs:45:12
@@ -473,13 +481,17 @@ error[E0308]: mismatched types
473
481
--> $DIR/recover-range-pats.rs:49:12
474
482
|
475
483
LL | if let .0...Y = 0 {}
476
- | ^^^^^^ expected integer, found floating-point number
484
+ | ^^ - this is of type `u8`
485
+ | |
486
+ | expected integer, found floating-point number
477
487
478
488
error[E0308]: mismatched types
479
- --> $DIR/recover-range-pats.rs:52:12
489
+ --> $DIR/recover-range-pats.rs:52:17
480
490
|
481
491
LL | if let X... .0 = 0 {}
482
- | ^^^^^^^ expected integer, found floating-point number
492
+ | - ^^ expected integer, found floating-point number
493
+ | |
494
+ | this is of type `u8`
483
495
484
496
error[E0029]: only char and numeric types are allowed in range patterns
485
497
--> $DIR/recover-range-pats.rs:60:12
@@ -491,7 +503,7 @@ error[E0308]: mismatched types
491
503
--> $DIR/recover-range-pats.rs:62:12
492
504
|
493
505
LL | if let .0.. = 0 {}
494
- | ^^^^ expected integer, found floating-point number
506
+ | ^^ expected integer, found floating-point number
495
507
496
508
error[E0029]: only char and numeric types are allowed in range patterns
497
509
--> $DIR/recover-range-pats.rs:70:12
@@ -503,7 +515,7 @@ error[E0308]: mismatched types
503
515
--> $DIR/recover-range-pats.rs:72:12
504
516
|
505
517
LL | if let .0..= = 0 {}
506
- | ^^^^^ expected integer, found floating-point number
518
+ | ^^ expected integer, found floating-point number
507
519
508
520
error[E0029]: only char and numeric types are allowed in range patterns
509
521
--> $DIR/recover-range-pats.rs:82:12
@@ -515,7 +527,7 @@ error[E0308]: mismatched types
515
527
--> $DIR/recover-range-pats.rs:85:12
516
528
|
517
529
LL | if let .0... = 0 {}
518
- | ^^^^^ expected integer, found floating-point number
530
+ | ^^ expected integer, found floating-point number
519
531
520
532
error[E0029]: only char and numeric types are allowed in range patterns
521
533
--> $DIR/recover-range-pats.rs:94:14
@@ -524,10 +536,10 @@ LL | if let ..true = 0 {}
524
536
| ^^^^ this is of type `bool` but it should be `char` or numeric
525
537
526
538
error[E0308]: mismatched types
527
- --> $DIR/recover-range-pats.rs:96:12
539
+ --> $DIR/recover-range-pats.rs:96:15
528
540
|
529
541
LL | if let .. .0 = 0 {}
530
- | ^^^ ^^ expected integer, found floating-point number
542
+ | ^^ expected integer, found floating-point number
531
543
532
544
error[E0029]: only char and numeric types are allowed in range patterns
533
545
--> $DIR/recover-range-pats.rs:104:15
@@ -536,10 +548,10 @@ LL | if let ..=true = 0 {}
536
548
| ^^^^ this is of type `bool` but it should be `char` or numeric
537
549
538
550
error[E0308]: mismatched types
539
- --> $DIR/recover-range-pats.rs:106:12
551
+ --> $DIR/recover-range-pats.rs:106:15
540
552
|
541
553
LL | if let ..=.0 = 0 {}
542
- | ^^^ ^^ expected integer, found floating-point number
554
+ | ^^ expected integer, found floating-point number
543
555
544
556
error[E0029]: only char and numeric types are allowed in range patterns
545
557
--> $DIR/recover-range-pats.rs:116:15
@@ -548,10 +560,10 @@ LL | if let ...true = 0 {}
548
560
| ^^^^ this is of type `bool` but it should be `char` or numeric
549
561
550
562
error[E0308]: mismatched types
551
- --> $DIR/recover-range-pats.rs:119:12
563
+ --> $DIR/recover-range-pats.rs:119:15
552
564
|
553
565
LL | if let ....3 = 0 {}
554
- | ^^^ ^^ expected integer, found floating-point number
566
+ | ^^ expected integer, found floating-point number
555
567
556
568
error: aborting due to 85 previous errors
557
569
0 commit comments