@@ -17,8 +17,8 @@ fn exclusive_from_to() {
1717 if let 0 ..Y = 0 { } // OK.
1818 if let X ..3 = 0 { } // OK.
1919 if let X ..Y = 0 { } // OK.
20- if let true ..Y = 0 { } //~ ERROR only char and numeric types
21- if let X ..true = 0 { } //~ ERROR only char and numeric types
20+ if let true ..Y = 0 { } //~ ERROR only ` char` and numeric types
21+ if let X ..true = 0 { } //~ ERROR only ` char` and numeric types
2222 if let . 0 ..Y = 0 { } //~ ERROR mismatched types
2323 //~^ ERROR float literals must have an integer part
2424 if let X .. . 0 = 0 { } //~ ERROR mismatched types
@@ -30,8 +30,8 @@ fn inclusive_from_to() {
3030 if let 0 ..=Y = 0 { } // OK.
3131 if let X ..=3 = 0 { } // OK.
3232 if let X ..=Y = 0 { } // OK.
33- if let true ..=Y = 0 { } //~ ERROR only char and numeric types
34- if let X ..=true = 0 { } //~ ERROR only char and numeric types
33+ if let true ..=Y = 0 { } //~ ERROR only ` char` and numeric types
34+ if let X ..=true = 0 { } //~ ERROR only ` char` and numeric types
3535 if let . 0 ..=Y = 0 { } //~ ERROR mismatched types
3636 //~^ ERROR float literals must have an integer part
3737 if let X ..=. 0 = 0 { } //~ ERROR mismatched types
@@ -43,9 +43,9 @@ fn inclusive2_from_to() {
4343 if let 0 ...Y = 0 { } //~ ERROR `...` range patterns are deprecated
4444 if let X ...3 = 0 { } //~ ERROR `...` range patterns are deprecated
4545 if let X ...Y = 0 { } //~ ERROR `...` range patterns are deprecated
46- if let true ...Y = 0 { } //~ ERROR only char and numeric types
46+ if let true ...Y = 0 { } //~ ERROR only ` char` and numeric types
4747 //~^ ERROR `...` range patterns are deprecated
48- if let X ...true = 0 { } //~ ERROR only char and numeric types
48+ if let X ...true = 0 { } //~ ERROR only ` char` and numeric types
4949 //~^ ERROR `...` range patterns are deprecated
5050 if let . 0 ...Y = 0 { } //~ ERROR mismatched types
5151 //~^ ERROR float literals must have an integer part
@@ -59,7 +59,7 @@ fn exclusive_from() {
5959 if let 0 .. = 0 { }
6060 if let X .. = 0 { }
6161 if let true .. = 0 { }
62- //~^ ERROR only char and numeric types
62+ //~^ ERROR only ` char` and numeric types
6363 if let . 0 .. = 0 { }
6464 //~^ ERROR float literals must have an integer part
6565 //~| ERROR mismatched types
@@ -69,7 +69,7 @@ fn inclusive_from() {
6969 if let 0 ..= = 0 { } //~ ERROR inclusive range with no end
7070 if let X ..= = 0 { } //~ ERROR inclusive range with no end
7171 if let true ..= = 0 { } //~ ERROR inclusive range with no end
72- //~| ERROR only char and numeric types
72+ //~| ERROR only ` char` and numeric types
7373 if let . 0 ..= = 0 { } //~ ERROR inclusive range with no end
7474 //~^ ERROR float literals must have an integer part
7575 //~| ERROR mismatched types
@@ -79,7 +79,7 @@ fn inclusive2_from() {
7979 if let 0 ... = 0 { } //~ ERROR inclusive range with no end
8080 if let X ... = 0 { } //~ ERROR inclusive range with no end
8181 if let true ... = 0 { } //~ ERROR inclusive range with no end
82- //~| ERROR only char and numeric types
82+ //~| ERROR only ` char` and numeric types
8383 if let . 0 ... = 0 { } //~ ERROR inclusive range with no end
8484 //~^ ERROR float literals must have an integer part
8585 //~| ERROR mismatched types
@@ -89,7 +89,7 @@ fn exclusive_to() {
8989 if let ..0 = 0 { }
9090 if let ..Y = 0 { }
9191 if let ..true = 0 { }
92- //~^ ERROR only char and numeric types
92+ //~^ ERROR only ` char` and numeric types
9393 if let .. . 0 = 0 { }
9494 //~^ ERROR float literals must have an integer part
9595 //~| ERROR mismatched types
@@ -99,7 +99,7 @@ fn inclusive_to() {
9999 if let ..=3 = 0 { }
100100 if let ..=Y = 0 { }
101101 if let ..=true = 0 { }
102- //~^ ERROR only char and numeric types
102+ //~^ ERROR only ` char` and numeric types
103103 if let ..=. 0 = 0 { }
104104 //~^ ERROR float literals must have an integer part
105105 //~| ERROR mismatched types
@@ -112,7 +112,7 @@ fn inclusive2_to() {
112112 //~^ ERROR range-to patterns with `...` are not allowed
113113 if let ... true = 0 { }
114114 //~^ ERROR range-to patterns with `...` are not allowed
115- //~| ERROR only char and numeric types
115+ //~| ERROR only ` char` and numeric types
116116 if let ....3 = 0 { }
117117 //~^ ERROR float literals must have an integer part
118118 //~| ERROR range-to patterns with `...` are not allowed
0 commit comments