@@ -17,8 +17,8 @@ fn exclusive_from_to() {
17
17
if let 0 ..Y = 0 { } // OK.
18
18
if let X ..3 = 0 { } // OK.
19
19
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
22
22
if let . 0 ..Y = 0 { } //~ ERROR mismatched types
23
23
//~^ ERROR float literals must have an integer part
24
24
if let X .. . 0 = 0 { } //~ ERROR mismatched types
@@ -30,8 +30,8 @@ fn inclusive_from_to() {
30
30
if let 0 ..=Y = 0 { } // OK.
31
31
if let X ..=3 = 0 { } // OK.
32
32
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
35
35
if let . 0 ..=Y = 0 { } //~ ERROR mismatched types
36
36
//~^ ERROR float literals must have an integer part
37
37
if let X ..=. 0 = 0 { } //~ ERROR mismatched types
@@ -43,9 +43,9 @@ fn inclusive2_from_to() {
43
43
if let 0 ...Y = 0 { } //~ ERROR `...` range patterns are deprecated
44
44
if let X ...3 = 0 { } //~ ERROR `...` range patterns are deprecated
45
45
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
47
47
//~^ 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
49
49
//~^ ERROR `...` range patterns are deprecated
50
50
if let . 0 ...Y = 0 { } //~ ERROR mismatched types
51
51
//~^ ERROR float literals must have an integer part
@@ -59,7 +59,7 @@ fn exclusive_from() {
59
59
if let 0 .. = 0 { }
60
60
if let X .. = 0 { }
61
61
if let true .. = 0 { }
62
- //~^ ERROR only char and numeric types
62
+ //~^ ERROR only ` char` and numeric types
63
63
if let . 0 .. = 0 { }
64
64
//~^ ERROR float literals must have an integer part
65
65
//~| ERROR mismatched types
@@ -69,7 +69,7 @@ fn inclusive_from() {
69
69
if let 0 ..= = 0 { } //~ ERROR inclusive range with no end
70
70
if let X ..= = 0 { } //~ ERROR inclusive range with no end
71
71
if let true ..= = 0 { } //~ ERROR inclusive range with no end
72
- //~| ERROR only char and numeric types
72
+ //~| ERROR only ` char` and numeric types
73
73
if let . 0 ..= = 0 { } //~ ERROR inclusive range with no end
74
74
//~^ ERROR float literals must have an integer part
75
75
//~| ERROR mismatched types
@@ -79,7 +79,7 @@ fn inclusive2_from() {
79
79
if let 0 ... = 0 { } //~ ERROR inclusive range with no end
80
80
if let X ... = 0 { } //~ ERROR inclusive range with no end
81
81
if let true ... = 0 { } //~ ERROR inclusive range with no end
82
- //~| ERROR only char and numeric types
82
+ //~| ERROR only ` char` and numeric types
83
83
if let . 0 ... = 0 { } //~ ERROR inclusive range with no end
84
84
//~^ ERROR float literals must have an integer part
85
85
//~| ERROR mismatched types
@@ -89,7 +89,7 @@ fn exclusive_to() {
89
89
if let ..0 = 0 { }
90
90
if let ..Y = 0 { }
91
91
if let ..true = 0 { }
92
- //~^ ERROR only char and numeric types
92
+ //~^ ERROR only ` char` and numeric types
93
93
if let .. . 0 = 0 { }
94
94
//~^ ERROR float literals must have an integer part
95
95
//~| ERROR mismatched types
@@ -99,7 +99,7 @@ fn inclusive_to() {
99
99
if let ..=3 = 0 { }
100
100
if let ..=Y = 0 { }
101
101
if let ..=true = 0 { }
102
- //~^ ERROR only char and numeric types
102
+ //~^ ERROR only ` char` and numeric types
103
103
if let ..=. 0 = 0 { }
104
104
//~^ ERROR float literals must have an integer part
105
105
//~| ERROR mismatched types
@@ -112,7 +112,7 @@ fn inclusive2_to() {
112
112
//~^ ERROR range-to patterns with `...` are not allowed
113
113
if let ... true = 0 { }
114
114
//~^ ERROR range-to patterns with `...` are not allowed
115
- //~| ERROR only char and numeric types
115
+ //~| ERROR only ` char` and numeric types
116
116
if let ....3 = 0 { }
117
117
//~^ ERROR float literals must have an integer part
118
118
//~| ERROR range-to patterns with `...` are not allowed
0 commit comments