1 error: no rules expected the token `let`
2 --> $DIR/feature-gate.rs:81:15
4 LL | macro_rules! use_expr {
5 | --------------------- when calling this macro
7 LL | use_expr!(let 0 = 1);
8 | ^^^ no rules expected this token in macro call
10 error[E0658]: `if let` guard is not implemented
11 --> $DIR/feature-gate.rs:7:12
13 LL | () if let 0 = 1 => {}
16 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
17 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
19 error[E0658]: `if let` guard is not implemented
20 --> $DIR/feature-gate.rs:77:12
22 LL | () if let 0 = 1 => {}
25 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
26 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
28 error[E0658]: `let` expressions in this position are experimental
29 --> $DIR/feature-gate.rs:11:16
31 LL | () if (let 0 = 1) => {}
34 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
35 = help: add `#![feature(let_chains)]` to the crate attributes to enable
37 error[E0658]: `let` expressions in this position are experimental
38 --> $DIR/feature-gate.rs:15:18
40 LL | () if (((let 0 = 1))) => {}
43 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
44 = help: add `#![feature(let_chains)]` to the crate attributes to enable
46 error[E0658]: `let` expressions in this position are experimental
47 --> $DIR/feature-gate.rs:19:23
49 LL | () if true && let 0 = 1 => {}
52 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
53 = help: add `#![feature(let_chains)]` to the crate attributes to enable
55 error[E0658]: `let` expressions in this position are experimental
56 --> $DIR/feature-gate.rs:23:15
58 LL | () if let 0 = 1 && true => {}
61 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
62 = help: add `#![feature(let_chains)]` to the crate attributes to enable
64 error[E0658]: `let` expressions in this position are experimental
65 --> $DIR/feature-gate.rs:27:16
67 LL | () if (let 0 = 1) && true => {}
70 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
71 = help: add `#![feature(let_chains)]` to the crate attributes to enable
73 error[E0658]: `let` expressions in this position are experimental
74 --> $DIR/feature-gate.rs:31:24
76 LL | () if true && (let 0 = 1) => {}
79 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
80 = help: add `#![feature(let_chains)]` to the crate attributes to enable
82 error[E0658]: `let` expressions in this position are experimental
83 --> $DIR/feature-gate.rs:35:16
85 LL | () if (let 0 = 1) && (let 0 = 1) => {}
88 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
89 = help: add `#![feature(let_chains)]` to the crate attributes to enable
91 error[E0658]: `let` expressions in this position are experimental
92 --> $DIR/feature-gate.rs:35:31
94 LL | () if (let 0 = 1) && (let 0 = 1) => {}
97 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
98 = help: add `#![feature(let_chains)]` to the crate attributes to enable
100 error[E0658]: `let` expressions in this position are experimental
101 --> $DIR/feature-gate.rs:41:15
103 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
106 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
107 = help: add `#![feature(let_chains)]` to the crate attributes to enable
109 error[E0658]: `let` expressions in this position are experimental
110 --> $DIR/feature-gate.rs:41:28
112 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
115 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
116 = help: add `#![feature(let_chains)]` to the crate attributes to enable
118 error[E0658]: `let` expressions in this position are experimental
119 --> $DIR/feature-gate.rs:41:42
121 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
124 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
125 = help: add `#![feature(let_chains)]` to the crate attributes to enable
127 error[E0658]: `let` expressions in this position are experimental
128 --> $DIR/feature-gate.rs:41:55
130 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
133 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
134 = help: add `#![feature(let_chains)]` to the crate attributes to enable
136 error[E0658]: `let` expressions in this position are experimental
137 --> $DIR/feature-gate.rs:41:68
139 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
142 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
143 = help: add `#![feature(let_chains)]` to the crate attributes to enable
145 error[E0658]: `let` expressions in this position are experimental
146 --> $DIR/feature-gate.rs:53:15
148 LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
149 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
152 = help: add `#![feature(let_chains)]` to the crate attributes to enable
154 error[E0658]: `let` expressions in this position are experimental
155 --> $DIR/feature-gate.rs:69:16
157 LL | use_expr!((let 0 = 1 && 0 == 0));
160 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
161 = help: add `#![feature(let_chains)]` to the crate attributes to enable
163 error[E0658]: `let` expressions in this position are experimental
164 --> $DIR/feature-gate.rs:72:16
166 LL | use_expr!((let 0 = 1));
169 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
170 = help: add `#![feature(let_chains)]` to the crate attributes to enable
172 error: `let` expressions are not supported here
173 --> $DIR/feature-gate.rs:11:16
175 LL | () if (let 0 = 1) => {}
178 = note: only supported directly in conditions of `if`- and `while`-expressions
179 = note: as well as when nested within `&&` and parenthesis in those conditions
181 error: `let` expressions are not supported here
182 --> $DIR/feature-gate.rs:15:18
184 LL | () if (((let 0 = 1))) => {}
187 = note: only supported directly in conditions of `if`- and `while`-expressions
188 = note: as well as when nested within `&&` and parenthesis in those conditions
190 error: `let` expressions are not supported here
191 --> $DIR/feature-gate.rs:19:23
193 LL | () if true && let 0 = 1 => {}
196 = note: only supported directly in conditions of `if`- and `while`-expressions
197 = note: as well as when nested within `&&` and parenthesis in those conditions
199 error: `let` expressions are not supported here
200 --> $DIR/feature-gate.rs:23:15
202 LL | () if let 0 = 1 && true => {}
205 = note: only supported directly in conditions of `if`- and `while`-expressions
206 = note: as well as when nested within `&&` and parenthesis in those conditions
208 error: `let` expressions are not supported here
209 --> $DIR/feature-gate.rs:27:16
211 LL | () if (let 0 = 1) && true => {}
214 = note: only supported directly in conditions of `if`- and `while`-expressions
215 = note: as well as when nested within `&&` and parenthesis in those conditions
217 error: `let` expressions are not supported here
218 --> $DIR/feature-gate.rs:31:24
220 LL | () if true && (let 0 = 1) => {}
223 = note: only supported directly in conditions of `if`- and `while`-expressions
224 = note: as well as when nested within `&&` and parenthesis in those conditions
226 error: `let` expressions are not supported here
227 --> $DIR/feature-gate.rs:35:16
229 LL | () if (let 0 = 1) && (let 0 = 1) => {}
232 = note: only supported directly in conditions of `if`- and `while`-expressions
233 = note: as well as when nested within `&&` and parenthesis in those conditions
235 error: `let` expressions are not supported here
236 --> $DIR/feature-gate.rs:35:31
238 LL | () if (let 0 = 1) && (let 0 = 1) => {}
241 = note: only supported directly in conditions of `if`- and `while`-expressions
242 = note: as well as when nested within `&&` and parenthesis in those conditions
244 error: `let` expressions are not supported here
245 --> $DIR/feature-gate.rs:41:15
247 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
250 = note: only supported directly in conditions of `if`- and `while`-expressions
251 = note: as well as when nested within `&&` and parenthesis in those conditions
253 error: `let` expressions are not supported here
254 --> $DIR/feature-gate.rs:41:28
256 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
259 = note: only supported directly in conditions of `if`- and `while`-expressions
260 = note: as well as when nested within `&&` and parenthesis in those conditions
262 error: `let` expressions are not supported here
263 --> $DIR/feature-gate.rs:41:42
265 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
268 = note: only supported directly in conditions of `if`- and `while`-expressions
269 = note: as well as when nested within `&&` and parenthesis in those conditions
271 error: `let` expressions are not supported here
272 --> $DIR/feature-gate.rs:41:55
274 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
277 = note: only supported directly in conditions of `if`- and `while`-expressions
278 = note: as well as when nested within `&&` and parenthesis in those conditions
280 error: `let` expressions are not supported here
281 --> $DIR/feature-gate.rs:41:68
283 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
286 = note: only supported directly in conditions of `if`- and `while`-expressions
287 = note: as well as when nested within `&&` and parenthesis in those conditions
289 error: `let` expressions are not supported here
290 --> $DIR/feature-gate.rs:53:15
292 LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
293 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
295 = note: only supported directly in conditions of `if`- and `while`-expressions
296 = note: as well as when nested within `&&` and parenthesis in those conditions
298 error: `let` expressions are not supported here
299 --> $DIR/feature-gate.rs:69:16
301 LL | use_expr!((let 0 = 1 && 0 == 0));
304 = note: only supported directly in conditions of `if`- and `while`-expressions
305 = note: as well as when nested within `&&` and parenthesis in those conditions
307 error: `let` expressions are not supported here
308 --> $DIR/feature-gate.rs:72:16
310 LL | use_expr!((let 0 = 1));
313 = note: only supported directly in conditions of `if`- and `while`-expressions
314 = note: as well as when nested within `&&` and parenthesis in those conditions
316 error: aborting due to 36 previous errors
318 For more information about this error, try `rustc --explain E0658`.