@@ -401,19 +401,17 @@ error[E0029]: only char and numeric types are allowed in range patterns
401401 --> $DIR/recover-range-pats.rs:19:12
402402 |
403403LL | 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
408407
409408error[E0029]: only char and numeric types are allowed in range patterns
410409 --> $DIR/recover-range-pats.rs:20:15
411410 |
412411LL | 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`
417415
418416error[E0308]: mismatched types
419417 --> $DIR/recover-range-pats.rs:21:12
@@ -437,19 +435,17 @@ error[E0029]: only char and numeric types are allowed in range patterns
437435 --> $DIR/recover-range-pats.rs:32:12
438436 |
439437LL | 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
444441
445442error[E0029]: only char and numeric types are allowed in range patterns
446443 --> $DIR/recover-range-pats.rs:33:16
447444 |
448445LL | 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`
453449
454450error[E0308]: mismatched types
455451 --> $DIR/recover-range-pats.rs:34:12
@@ -473,19 +469,17 @@ error[E0029]: only char and numeric types are allowed in range patterns
473469 --> $DIR/recover-range-pats.rs:45:12
474470 |
475471LL | 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
480475
481476error[E0029]: only char and numeric types are allowed in range patterns
482477 --> $DIR/recover-range-pats.rs:47:16
483478 |
484479LL | 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`
489483
490484error[E0308]: mismatched types
491485 --> $DIR/recover-range-pats.rs:49:12
@@ -509,10 +503,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
509503 --> $DIR/recover-range-pats.rs:60:12
510504 |
511505LL | 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
516507
517508error[E0308]: mismatched types
518509 --> $DIR/recover-range-pats.rs:62:12
@@ -527,10 +518,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
527518 --> $DIR/recover-range-pats.rs:70:12
528519 |
529520LL | 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
534522
535523error[E0308]: mismatched types
536524 --> $DIR/recover-range-pats.rs:72:12
@@ -545,10 +533,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
545533 --> $DIR/recover-range-pats.rs:82:12
546534 |
547535LL | 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
552537
553538error[E0308]: mismatched types
554539 --> $DIR/recover-range-pats.rs:85:12
@@ -563,10 +548,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
563548 --> $DIR/recover-range-pats.rs:94:14
564549 |
565550LL | 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
570552
571553error[E0308]: mismatched types
572554 --> $DIR/recover-range-pats.rs:96:12
@@ -581,10 +563,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
581563 --> $DIR/recover-range-pats.rs:104:15
582564 |
583565LL | 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
588567
589568error[E0308]: mismatched types
590569 --> $DIR/recover-range-pats.rs:106:12
@@ -599,10 +578,7 @@ error[E0029]: only char and numeric types are allowed in range patterns
599578 --> $DIR/recover-range-pats.rs:116:15
600579 |
601580LL | 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
606582
607583error[E0308]: mismatched types
608584 --> $DIR/recover-range-pats.rs:119:12
0 commit comments