@@ -25,106 +25,106 @@ LL | () if (((let 0 = 1))) => {}
2525 | ^^^^^^^^^
2626
2727error: expected expression, found `let` statement
28- --> $DIR/feature-gate.rs:22 :16
28+ --> $DIR/feature-gate.rs:24 :16
2929 |
3030LL | () if (let 0 = 1) && true => {}
3131 | ^^^^^^^^^
3232 |
3333 = note: only supported directly in conditions of `if` and `while` expressions
3434note: `let`s wrapped in parentheses are not supported in a context with let chains
35- --> $DIR/feature-gate.rs:22 :16
35+ --> $DIR/feature-gate.rs:24 :16
3636 |
3737LL | () if (let 0 = 1) && true => {}
3838 | ^^^^^^^^^
3939
4040error: expected expression, found `let` statement
41- --> $DIR/feature-gate.rs:25 :24
41+ --> $DIR/feature-gate.rs:27 :24
4242 |
4343LL | () if true && (let 0 = 1) => {}
4444 | ^^^^^^^^^
4545 |
4646 = note: only supported directly in conditions of `if` and `while` expressions
4747note: `let`s wrapped in parentheses are not supported in a context with let chains
48- --> $DIR/feature-gate.rs:25 :24
48+ --> $DIR/feature-gate.rs:27 :24
4949 |
5050LL | () if true && (let 0 = 1) => {}
5151 | ^^^^^^^^^
5252
5353error: expected expression, found `let` statement
54- --> $DIR/feature-gate.rs:28 :16
54+ --> $DIR/feature-gate.rs:30 :16
5555 |
5656LL | () if (let 0 = 1) && (let 0 = 1) => {}
5757 | ^^^^^^^^^
5858 |
5959 = note: only supported directly in conditions of `if` and `while` expressions
6060note: `let`s wrapped in parentheses are not supported in a context with let chains
61- --> $DIR/feature-gate.rs:28 :16
61+ --> $DIR/feature-gate.rs:30 :16
6262 |
6363LL | () if (let 0 = 1) && (let 0 = 1) => {}
6464 | ^^^^^^^^^
6565
6666error: expected expression, found `let` statement
67- --> $DIR/feature-gate.rs:28 :31
67+ --> $DIR/feature-gate.rs:30 :31
6868 |
6969LL | () if (let 0 = 1) && (let 0 = 1) => {}
7070 | ^^^^^^^^^
7171 |
7272 = note: only supported directly in conditions of `if` and `while` expressions
7373note: `let`s wrapped in parentheses are not supported in a context with let chains
74- --> $DIR/feature-gate.rs:28 :31
74+ --> $DIR/feature-gate.rs:30 :31
7575 |
7676LL | () if (let 0 = 1) && (let 0 = 1) => {}
7777 | ^^^^^^^^^
7878
7979error: expected expression, found `let` statement
80- --> $DIR/feature-gate.rs:32 :42
80+ --> $DIR/feature-gate.rs:34 :42
8181 |
8282LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
8383 | ^^^^^^^^^
8484 |
8585 = note: only supported directly in conditions of `if` and `while` expressions
8686note: `let`s wrapped in parentheses are not supported in a context with let chains
87- --> $DIR/feature-gate.rs:32 :42
87+ --> $DIR/feature-gate.rs:34 :42
8888 |
8989LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
9090 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9191
9292error: expected expression, found `let` statement
93- --> $DIR/feature-gate.rs:32 :55
93+ --> $DIR/feature-gate.rs:34 :55
9494 |
9595LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
9696 | ^^^^^^^^^
9797 |
9898 = note: only supported directly in conditions of `if` and `while` expressions
9999note: `let`s wrapped in parentheses are not supported in a context with let chains
100- --> $DIR/feature-gate.rs:32 :42
100+ --> $DIR/feature-gate.rs:34 :42
101101 |
102102LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
103103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104104
105105error: expected expression, found `let` statement
106- --> $DIR/feature-gate.rs:32 :68
106+ --> $DIR/feature-gate.rs:34 :68
107107 |
108108LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
109109 | ^^^^^^^^^
110110 |
111111 = note: only supported directly in conditions of `if` and `while` expressions
112112note: `let`s wrapped in parentheses are not supported in a context with let chains
113- --> $DIR/feature-gate.rs:32 :42
113+ --> $DIR/feature-gate.rs:34 :42
114114 |
115115LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
116116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117117
118118error: expected expression, found `let` statement
119- --> $DIR/feature-gate.rs:55 :16
119+ --> $DIR/feature-gate.rs:60 :16
120120 |
121121LL | use_expr!((let 0 = 1 && 0 == 0));
122122 | ^^^
123123 |
124124 = note: only supported directly in conditions of `if` and `while` expressions
125125
126126error: expected expression, found `let` statement
127- --> $DIR/feature-gate.rs:55 :16
127+ --> $DIR/feature-gate.rs:60 :16
128128 |
129129LL | use_expr!((let 0 = 1 && 0 == 0));
130130 | ^^^
@@ -133,15 +133,15 @@ LL | use_expr!((let 0 = 1 && 0 == 0));
133133 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
134134
135135error: expected expression, found `let` statement
136- --> $DIR/feature-gate.rs:58 :16
136+ --> $DIR/feature-gate.rs:63 :16
137137 |
138138LL | use_expr!((let 0 = 1));
139139 | ^^^
140140 |
141141 = note: only supported directly in conditions of `if` and `while` expressions
142142
143143error: expected expression, found `let` statement
144- --> $DIR/feature-gate.rs:58 :16
144+ --> $DIR/feature-gate.rs:63 :16
145145 |
146146LL | use_expr!((let 0 = 1));
147147 | ^^^
@@ -150,7 +150,7 @@ LL | use_expr!((let 0 = 1));
150150 = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
151151
152152error: no rules expected keyword `let`
153- --> $DIR/feature-gate.rs:67 :15
153+ --> $DIR/feature-gate.rs:72 :15
154154 |
155155LL | macro_rules! use_expr {
156156 | --------------------- when calling this macro
@@ -159,7 +159,7 @@ LL | use_expr!(let 0 = 1);
159159 | ^^^ no rules expected this token in macro call
160160 |
161161note: while trying to match meta-variable `$e:expr`
162- --> $DIR/feature-gate.rs:48 :10
162+ --> $DIR/feature-gate.rs:53 :10
163163 |
164164LL | ($e:expr) => {
165165 | ^^^^^^^
@@ -187,7 +187,7 @@ LL | () if true && let 0 = 1 => {}
187187 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
188188
189189error[E0658]: `if let` guards are experimental
190- --> $DIR/feature-gate.rs:19 :12
190+ --> $DIR/feature-gate.rs:20 :12
191191 |
192192LL | () if let 0 = 1 && true => {}
193193 | ^^^^^^^^^^^^^^^^^^^^
@@ -198,7 +198,7 @@ LL | () if let 0 = 1 && true => {}
198198 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
199199
200200error[E0658]: `if let` guards are experimental
201- --> $DIR/feature-gate.rs:32 :12
201+ --> $DIR/feature-gate.rs:34 :12
202202 |
203203LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
204204 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -209,7 +209,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
209209 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
210210
211211error[E0658]: `if let` guards are experimental
212- --> $DIR/feature-gate.rs:39 :12
212+ --> $DIR/feature-gate.rs:43 :12
213213 |
214214LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
215215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -220,7 +220,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
220220 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
221221
222222error[E0658]: `if let` guards are experimental
223- --> $DIR/feature-gate.rs:63 :12
223+ --> $DIR/feature-gate.rs:68 :12
224224 |
225225LL | () if let 0 = 1 => {}
226226 | ^^^^^^^^^^^^
@@ -230,6 +230,56 @@ LL | () if let 0 = 1 => {}
230230 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
231231 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
232232
233- error: aborting due to 20 previous errors
233+ error[E0658]: `let` expressions in this position are unstable
234+ --> $DIR/feature-gate.rs:16:23
235+ |
236+ LL | () if true && let 0 = 1 => {}
237+ | ^^^^^^^^^
238+ |
239+ = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
240+ = help: add `#![feature(let_chains)]` to the crate attributes to enable
241+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
242+
243+ error[E0658]: `let` expressions in this position are unstable
244+ --> $DIR/feature-gate.rs:20:15
245+ |
246+ LL | () if let 0 = 1 && true => {}
247+ | ^^^^^^^^^
248+ |
249+ = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
250+ = help: add `#![feature(let_chains)]` to the crate attributes to enable
251+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
252+
253+ error[E0658]: `let` expressions in this position are unstable
254+ --> $DIR/feature-gate.rs:34:15
255+ |
256+ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
257+ | ^^^^^^^^^
258+ |
259+ = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
260+ = help: add `#![feature(let_chains)]` to the crate attributes to enable
261+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
262+
263+ error[E0658]: `let` expressions in this position are unstable
264+ --> $DIR/feature-gate.rs:34:28
265+ |
266+ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
267+ | ^^^^^^^^^
268+ |
269+ = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
270+ = help: add `#![feature(let_chains)]` to the crate attributes to enable
271+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
272+
273+ error[E0658]: `let` expressions in this position are unstable
274+ --> $DIR/feature-gate.rs:43:15
275+ |
276+ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
277+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
278+ |
279+ = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
280+ = help: add `#![feature(let_chains)]` to the crate attributes to enable
281+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
282+
283+ error: aborting due to 25 previous errors
234284
235285For more information about this error, try `rustc --explain E0658`.
0 commit comments