@@ -417,13 +417,17 @@ error[E0308]: mismatched types
417417 --> $DIR/recover-range-pats.rs:21:12
418418 |
419419LL | 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
421423
422424error[E0308]: mismatched types
423- --> $DIR/recover-range-pats.rs:23:12
425+ --> $DIR/recover-range-pats.rs:23:16
424426 |
425427LL | 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`
427431
428432error[E0029]: only char and numeric types are allowed in range patterns
429433 --> $DIR/recover-range-pats.rs:32:12
@@ -445,13 +449,17 @@ error[E0308]: mismatched types
445449 --> $DIR/recover-range-pats.rs:34:12
446450 |
447451LL | 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
449455
450456error[E0308]: mismatched types
451- --> $DIR/recover-range-pats.rs:36:12
457+ --> $DIR/recover-range-pats.rs:36:16
452458 |
453459LL | 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`
455463
456464error[E0029]: only char and numeric types are allowed in range patterns
457465 --> $DIR/recover-range-pats.rs:45:12
@@ -473,13 +481,17 @@ error[E0308]: mismatched types
473481 --> $DIR/recover-range-pats.rs:49:12
474482 |
475483LL | 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
477487
478488error[E0308]: mismatched types
479- --> $DIR/recover-range-pats.rs:52:12
489+ --> $DIR/recover-range-pats.rs:52:17
480490 |
481491LL | 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`
483495
484496error[E0029]: only char and numeric types are allowed in range patterns
485497 --> $DIR/recover-range-pats.rs:60:12
@@ -491,7 +503,7 @@ error[E0308]: mismatched types
491503 --> $DIR/recover-range-pats.rs:62:12
492504 |
493505LL | if let .0.. = 0 {}
494- | ^^^^ expected integer, found floating-point number
506+ | ^^ expected integer, found floating-point number
495507
496508error[E0029]: only char and numeric types are allowed in range patterns
497509 --> $DIR/recover-range-pats.rs:70:12
@@ -503,7 +515,7 @@ error[E0308]: mismatched types
503515 --> $DIR/recover-range-pats.rs:72:12
504516 |
505517LL | if let .0..= = 0 {}
506- | ^^^^^ expected integer, found floating-point number
518+ | ^^ expected integer, found floating-point number
507519
508520error[E0029]: only char and numeric types are allowed in range patterns
509521 --> $DIR/recover-range-pats.rs:82:12
@@ -515,7 +527,7 @@ error[E0308]: mismatched types
515527 --> $DIR/recover-range-pats.rs:85:12
516528 |
517529LL | if let .0... = 0 {}
518- | ^^^^^ expected integer, found floating-point number
530+ | ^^ expected integer, found floating-point number
519531
520532error[E0029]: only char and numeric types are allowed in range patterns
521533 --> $DIR/recover-range-pats.rs:94:14
@@ -524,10 +536,10 @@ LL | if let ..true = 0 {}
524536 | ^^^^ this is of type `bool` but it should be `char` or numeric
525537
526538error[E0308]: mismatched types
527- --> $DIR/recover-range-pats.rs:96:12
539+ --> $DIR/recover-range-pats.rs:96:15
528540 |
529541LL | if let .. .0 = 0 {}
530- | ^^^ ^^ expected integer, found floating-point number
542+ | ^^ expected integer, found floating-point number
531543
532544error[E0029]: only char and numeric types are allowed in range patterns
533545 --> $DIR/recover-range-pats.rs:104:15
@@ -536,10 +548,10 @@ LL | if let ..=true = 0 {}
536548 | ^^^^ this is of type `bool` but it should be `char` or numeric
537549
538550error[E0308]: mismatched types
539- --> $DIR/recover-range-pats.rs:106:12
551+ --> $DIR/recover-range-pats.rs:106:15
540552 |
541553LL | if let ..=.0 = 0 {}
542- | ^^^ ^^ expected integer, found floating-point number
554+ | ^^ expected integer, found floating-point number
543555
544556error[E0029]: only char and numeric types are allowed in range patterns
545557 --> $DIR/recover-range-pats.rs:116:15
@@ -548,10 +560,10 @@ LL | if let ...true = 0 {}
548560 | ^^^^ this is of type `bool` but it should be `char` or numeric
549561
550562error[E0308]: mismatched types
551- --> $DIR/recover-range-pats.rs:119:12
563+ --> $DIR/recover-range-pats.rs:119:15
552564 |
553565LL | if let ....3 = 0 {}
554- | ^^^ ^^ expected integer, found floating-point number
566+ | ^^ expected integer, found floating-point number
555567
556568error: aborting due to 85 previous errors
557569
0 commit comments