@@ -401,19 +401,17 @@ error[E0029]: only char and numeric types are allowed in range patterns
401
401
--> $DIR/recover-range-pats.rs:19:12
402
402
|
403
403
LL | if let true..Y = 0 {}
404
- | ^^^^ ranges require char or numeric types
405
- |
406
- = note: start type: bool
407
- = note: end type: u8
404
+ | ^^^^ - this is of type `u8`
405
+ | |
406
+ | this is of type `bool` but it should be `char` or numeric
408
407
409
408
error[E0029]: only char and numeric types are allowed in range patterns
410
409
--> $DIR/recover-range-pats.rs:20:15
411
410
|
412
411
LL | if let X..true = 0 {}
413
- | ^^^^ ranges require char or numeric types
414
- |
415
- = note: start type: u8
416
- = note: end type: bool
412
+ | - ^^^^ this is of type `bool` but it should be `char` or numeric
413
+ | |
414
+ | this is of type `u8`
417
415
418
416
error[E0308]: mismatched types
419
417
--> $DIR/recover-range-pats.rs:21:12
@@ -437,19 +435,17 @@ error[E0029]: only char and numeric types are allowed in range patterns
437
435
--> $DIR/recover-range-pats.rs:32:12
438
436
|
439
437
LL | if let true..=Y = 0 {}
440
- | ^^^^ ranges require char or numeric types
441
- |
442
- = note: start type: bool
443
- = note: end type: u8
438
+ | ^^^^ - this is of type `u8`
439
+ | |
440
+ | this is of type `bool` but it should be `char` or numeric
444
441
445
442
error[E0029]: only char and numeric types are allowed in range patterns
446
443
--> $DIR/recover-range-pats.rs:33:16
447
444
|
448
445
LL | if let X..=true = 0 {}
449
- | ^^^^ ranges require char or numeric types
450
- |
451
- = note: start type: u8
452
- = note: end type: bool
446
+ | - ^^^^ this is of type `bool` but it should be `char` or numeric
447
+ | |
448
+ | this is of type `u8`
453
449
454
450
error[E0308]: mismatched types
455
451
--> $DIR/recover-range-pats.rs:34:12
@@ -473,19 +469,17 @@ error[E0029]: only char and numeric types are allowed in range patterns
473
469
--> $DIR/recover-range-pats.rs:45:12
474
470
|
475
471
LL | if let true...Y = 0 {}
476
- | ^^^^ ranges require char or numeric types
477
- |
478
- = note: start type: bool
479
- = note: end type: u8
472
+ | ^^^^ - this is of type `u8`
473
+ | |
474
+ | this is of type `bool` but it should be `char` or numeric
480
475
481
476
error[E0029]: only char and numeric types are allowed in range patterns
482
477
--> $DIR/recover-range-pats.rs:47:16
483
478
|
484
479
LL | if let X...true = 0 {}
485
- | ^^^^ ranges require char or numeric types
486
- |
487
- = note: start type: u8
488
- = note: end type: bool
480
+ | - ^^^^ this is of type `bool` but it should be `char` or numeric
481
+ | |
482
+ | this is of type `u8`
489
483
490
484
error[E0308]: mismatched types
491
485
--> $DIR/recover-range-pats.rs:49:12
@@ -509,10 +503,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
509
503
--> $DIR/recover-range-pats.rs:60:12
510
504
|
511
505
LL | if let true.. = 0 {}
512
- | ^^^^ ranges require char or numeric types
513
- |
514
- = note: start type: bool
515
- = note: end type: [type error]
506
+ | ^^^^ this is of type `bool` but it should be `char` or numeric
516
507
517
508
error[E0308]: mismatched types
518
509
--> $DIR/recover-range-pats.rs:62:12
@@ -527,10 +518,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
527
518
--> $DIR/recover-range-pats.rs:70:12
528
519
|
529
520
LL | if let true..= = 0 {}
530
- | ^^^^ ranges require char or numeric types
531
- |
532
- = note: start type: bool
533
- = note: end type: [type error]
521
+ | ^^^^ this is of type `bool` but it should be `char` or numeric
534
522
535
523
error[E0308]: mismatched types
536
524
--> $DIR/recover-range-pats.rs:72:12
@@ -545,10 +533,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
545
533
--> $DIR/recover-range-pats.rs:82:12
546
534
|
547
535
LL | if let true... = 0 {}
548
- | ^^^^ ranges require char or numeric types
549
- |
550
- = note: start type: bool
551
- = note: end type: [type error]
536
+ | ^^^^ this is of type `bool` but it should be `char` or numeric
552
537
553
538
error[E0308]: mismatched types
554
539
--> $DIR/recover-range-pats.rs:85:12
@@ -563,10 +548,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
563
548
--> $DIR/recover-range-pats.rs:94:14
564
549
|
565
550
LL | if let ..true = 0 {}
566
- | ^^^^ ranges require char or numeric types
567
- |
568
- = note: start type: [type error]
569
- = note: end type: bool
551
+ | ^^^^ this is of type `bool` but it should be `char` or numeric
570
552
571
553
error[E0308]: mismatched types
572
554
--> $DIR/recover-range-pats.rs:96:12
@@ -581,10 +563,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
581
563
--> $DIR/recover-range-pats.rs:104:15
582
564
|
583
565
LL | if let ..=true = 0 {}
584
- | ^^^^ ranges require char or numeric types
585
- |
586
- = note: start type: [type error]
587
- = note: end type: bool
566
+ | ^^^^ this is of type `bool` but it should be `char` or numeric
588
567
589
568
error[E0308]: mismatched types
590
569
--> $DIR/recover-range-pats.rs:106:12
@@ -599,10 +578,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
599
578
--> $DIR/recover-range-pats.rs:116:15
600
579
|
601
580
LL | if let ...true = 0 {}
602
- | ^^^^ ranges require char or numeric types
603
- |
604
- = note: start type: [type error]
605
- = note: end type: bool
581
+ | ^^^^ this is of type `bool` but it should be `char` or numeric
606
582
607
583
error[E0308]: mismatched types
608
584
--> $DIR/recover-range-pats.rs:119:12
0 commit comments