11error: expected expression, found `let` statement
2- --> $DIR/feature-gate.rs:59:16
2+ --> $DIR/feature-gate.rs:10:16
3+ |
4+ LL | () if (let 0 = 1) => {}
5+ | ^^^
6+
7+ error: expected expression, found `let` statement
8+ --> $DIR/feature-gate.rs:14:18
9+ |
10+ LL | () if (((let 0 = 1))) => {}
11+ | ^^^
12+
13+ error: expected expression, found `let` statement
14+ --> $DIR/feature-gate.rs:26:16
15+ |
16+ LL | () if (let 0 = 1) && true => {}
17+ | ^^^
18+
19+ error: expected expression, found `let` statement
20+ --> $DIR/feature-gate.rs:30:24
21+ |
22+ LL | () if true && (let 0 = 1) => {}
23+ | ^^^
24+
25+ error: expected expression, found `let` statement
26+ --> $DIR/feature-gate.rs:34:16
27+ |
28+ LL | () if (let 0 = 1) && (let 0 = 1) => {}
29+ | ^^^
30+
31+ error: expected expression, found `let` statement
32+ --> $DIR/feature-gate.rs:34:31
33+ |
34+ LL | () if (let 0 = 1) && (let 0 = 1) => {}
35+ | ^^^
36+
37+ error: expected expression, found `let` statement
38+ --> $DIR/feature-gate.rs:40:42
39+ |
40+ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
41+ | ^^^
42+
43+ error: expected expression, found `let` statement
44+ --> $DIR/feature-gate.rs:66:16
345 |
446LL | use_expr!((let 0 = 1 && 0 == 0));
547 | ^^^
648
749error: expected expression, found `let` statement
8- --> $DIR/feature-gate.rs:62 :16
50+ --> $DIR/feature-gate.rs:69 :16
951 |
1052LL | use_expr!((let 0 = 1));
1153 | ^^^
1254
1355error: no rules expected the token `let`
14- --> $DIR/feature-gate.rs:71 :15
56+ --> $DIR/feature-gate.rs:78 :15
1557 |
1658LL | macro_rules! use_expr {
1759 | --------------------- when calling this macro
@@ -30,7 +72,7 @@ LL | () if let 0 = 1 => {}
3072 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
3173
3274error[E0658]: `if let` guards are experimental
33- --> $DIR/feature-gate.rs:16 :12
75+ --> $DIR/feature-gate.rs:18 :12
3476 |
3577LL | () if true && let 0 = 1 => {}
3678 | ^^^^^^^^^^^^^^^^^^^^
@@ -40,7 +82,7 @@ LL | () if true && let 0 = 1 => {}
4082 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
4183
4284error[E0658]: `if let` guards are experimental
43- --> $DIR/feature-gate.rs:20 :12
85+ --> $DIR/feature-gate.rs:22 :12
4486 |
4587LL | () if let 0 = 1 && true => {}
4688 | ^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +92,7 @@ LL | () if let 0 = 1 && true => {}
5092 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
5193
5294error[E0658]: `if let` guards are experimental
53- --> $DIR/feature-gate.rs:34 :12
95+ --> $DIR/feature-gate.rs:40 :12
5496 |
5597LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
5698 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -60,7 +102,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
60102 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
61103
62104error[E0658]: `if let` guards are experimental
63- --> $DIR/feature-gate.rs:42 :12
105+ --> $DIR/feature-gate.rs:49 :12
64106 |
65107LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
66108 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -70,7 +112,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
70112 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
71113
72114error[E0658]: `if let` guards are experimental
73- --> $DIR/feature-gate.rs:67 :12
115+ --> $DIR/feature-gate.rs:74 :12
74116 |
75117LL | () if let 0 = 1 => {}
76118 | ^^^^^^^^^^^^
@@ -89,7 +131,7 @@ LL | () if (let 0 = 1) => {}
89131 = help: add `#![feature(let_chains)]` to the crate attributes to enable
90132
91133error[E0658]: `let` expressions in this position are unstable
92- --> $DIR/feature-gate.rs:13 :18
134+ --> $DIR/feature-gate.rs:14 :18
93135 |
94136LL | () if (((let 0 = 1))) => {}
95137 | ^^^^^^^^^
@@ -98,7 +140,7 @@ LL | () if (((let 0 = 1))) => {}
98140 = help: add `#![feature(let_chains)]` to the crate attributes to enable
99141
100142error[E0658]: `let` expressions in this position are unstable
101- --> $DIR/feature-gate.rs:16 :23
143+ --> $DIR/feature-gate.rs:18 :23
102144 |
103145LL | () if true && let 0 = 1 => {}
104146 | ^^^^^^^^^
@@ -107,7 +149,7 @@ LL | () if true && let 0 = 1 => {}
107149 = help: add `#![feature(let_chains)]` to the crate attributes to enable
108150
109151error[E0658]: `let` expressions in this position are unstable
110- --> $DIR/feature-gate.rs:20 :15
152+ --> $DIR/feature-gate.rs:22 :15
111153 |
112154LL | () if let 0 = 1 && true => {}
113155 | ^^^^^^^^^
@@ -116,7 +158,7 @@ LL | () if let 0 = 1 && true => {}
116158 = help: add `#![feature(let_chains)]` to the crate attributes to enable
117159
118160error[E0658]: `let` expressions in this position are unstable
119- --> $DIR/feature-gate.rs:24 :16
161+ --> $DIR/feature-gate.rs:26 :16
120162 |
121163LL | () if (let 0 = 1) && true => {}
122164 | ^^^^^^^^^
@@ -125,7 +167,7 @@ LL | () if (let 0 = 1) && true => {}
125167 = help: add `#![feature(let_chains)]` to the crate attributes to enable
126168
127169error[E0658]: `let` expressions in this position are unstable
128- --> $DIR/feature-gate.rs:27 :24
170+ --> $DIR/feature-gate.rs:30 :24
129171 |
130172LL | () if true && (let 0 = 1) => {}
131173 | ^^^^^^^^^
@@ -134,7 +176,7 @@ LL | () if true && (let 0 = 1) => {}
134176 = help: add `#![feature(let_chains)]` to the crate attributes to enable
135177
136178error[E0658]: `let` expressions in this position are unstable
137- --> $DIR/feature-gate.rs:30 :16
179+ --> $DIR/feature-gate.rs:34 :16
138180 |
139181LL | () if (let 0 = 1) && (let 0 = 1) => {}
140182 | ^^^^^^^^^
@@ -143,7 +185,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
143185 = help: add `#![feature(let_chains)]` to the crate attributes to enable
144186
145187error[E0658]: `let` expressions in this position are unstable
146- --> $DIR/feature-gate.rs:30 :31
188+ --> $DIR/feature-gate.rs:34 :31
147189 |
148190LL | () if (let 0 = 1) && (let 0 = 1) => {}
149191 | ^^^^^^^^^
@@ -152,7 +194,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
152194 = help: add `#![feature(let_chains)]` to the crate attributes to enable
153195
154196error[E0658]: `let` expressions in this position are unstable
155- --> $DIR/feature-gate.rs:34 :15
197+ --> $DIR/feature-gate.rs:40 :15
156198 |
157199LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
158200 | ^^^^^^^^^
@@ -161,7 +203,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
161203 = help: add `#![feature(let_chains)]` to the crate attributes to enable
162204
163205error[E0658]: `let` expressions in this position are unstable
164- --> $DIR/feature-gate.rs:34 :28
206+ --> $DIR/feature-gate.rs:40 :28
165207 |
166208LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
167209 | ^^^^^^^^^
@@ -170,7 +212,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
170212 = help: add `#![feature(let_chains)]` to the crate attributes to enable
171213
172214error[E0658]: `let` expressions in this position are unstable
173- --> $DIR/feature-gate.rs:34 :42
215+ --> $DIR/feature-gate.rs:40 :42
174216 |
175217LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
176218 | ^^^^^^^^^
@@ -179,7 +221,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
179221 = help: add `#![feature(let_chains)]` to the crate attributes to enable
180222
181223error[E0658]: `let` expressions in this position are unstable
182- --> $DIR/feature-gate.rs:34 :55
224+ --> $DIR/feature-gate.rs:40 :55
183225 |
184226LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
185227 | ^^^^^^^^^
@@ -188,7 +230,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
188230 = help: add `#![feature(let_chains)]` to the crate attributes to enable
189231
190232error[E0658]: `let` expressions in this position are unstable
191- --> $DIR/feature-gate.rs:34 :68
233+ --> $DIR/feature-gate.rs:40 :68
192234 |
193235LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
194236 | ^^^^^^^^^
@@ -197,7 +239,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
197239 = help: add `#![feature(let_chains)]` to the crate attributes to enable
198240
199241error[E0658]: `let` expressions in this position are unstable
200- --> $DIR/feature-gate.rs:42 :15
242+ --> $DIR/feature-gate.rs:49 :15
201243 |
202244LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
203245 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -206,7 +248,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
206248 = help: add `#![feature(let_chains)]` to the crate attributes to enable
207249
208250error[E0658]: `let` expressions in this position are unstable
209- --> $DIR/feature-gate.rs:59 :16
251+ --> $DIR/feature-gate.rs:66 :16
210252 |
211253LL | use_expr!((let 0 = 1 && 0 == 0));
212254 | ^^^^^^^^^
@@ -215,14 +257,14 @@ LL | use_expr!((let 0 = 1 && 0 == 0));
215257 = help: add `#![feature(let_chains)]` to the crate attributes to enable
216258
217259error[E0658]: `let` expressions in this position are unstable
218- --> $DIR/feature-gate.rs:62 :16
260+ --> $DIR/feature-gate.rs:69 :16
219261 |
220262LL | use_expr!((let 0 = 1));
221263 | ^^^^^^^^^
222264 |
223265 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
224266 = help: add `#![feature(let_chains)]` to the crate attributes to enable
225267
226- error: aborting due to 25 previous errors
268+ error: aborting due to 32 previous errors
227269
228270For more information about this error, try `rustc --explain E0658`.
0 commit comments