1 error: no rules expected the token `let`
2 --> $DIR/feature-gate.rs:101: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]: `let` expressions in this position are unstable
11 --> $DIR/feature-gate.rs:14:9
13 LL | if (let 0 = 1) {}
16 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
17 = help: add `#![feature(let_chains)]` to the crate attributes to enable
19 error[E0658]: `let` expressions in this position are unstable
20 --> $DIR/feature-gate.rs:17:11
22 LL | if (((let 0 = 1))) {}
25 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
26 = help: add `#![feature(let_chains)]` to the crate attributes to enable
28 error[E0658]: `let` expressions in this position are unstable
29 --> $DIR/feature-gate.rs:20:16
31 LL | if true && 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 unstable
38 --> $DIR/feature-gate.rs:23:8
40 LL | if let 0 = 1 && true {}
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 unstable
47 --> $DIR/feature-gate.rs:26:9
49 LL | if (let 0 = 1) && true {}
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 unstable
56 --> $DIR/feature-gate.rs:29:17
58 LL | if true && (let 0 = 1) {}
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 unstable
65 --> $DIR/feature-gate.rs:32:9
67 LL | if (let 0 = 1) && (let 0 = 1) {}
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 unstable
74 --> $DIR/feature-gate.rs:32:24
76 LL | if (let 0 = 1) && (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 unstable
83 --> $DIR/feature-gate.rs:36:8
85 LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
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 unstable
92 --> $DIR/feature-gate.rs:36:21
94 LL | if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
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 unstable
101 --> $DIR/feature-gate.rs:36:35
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 unstable
110 --> $DIR/feature-gate.rs:36:48
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 unstable
119 --> $DIR/feature-gate.rs:36:61
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 unstable
128 --> $DIR/feature-gate.rs:43:8
130 LL | if let Range { start: _, end: _ } = (true..true) && false {}
131 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 unstable
137 --> $DIR/feature-gate.rs:50:12
139 LL | while (let 0 = 1) {}
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 unstable
146 --> $DIR/feature-gate.rs:53:14
148 LL | while (((let 0 = 1))) {}
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 unstable
155 --> $DIR/feature-gate.rs:56:19
157 LL | while true && let 0 = 1 {}
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 unstable
164 --> $DIR/feature-gate.rs:59:11
166 LL | while let 0 = 1 && true {}
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[E0658]: `let` expressions in this position are unstable
173 --> $DIR/feature-gate.rs:62:12
175 LL | while (let 0 = 1) && true {}
178 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
179 = help: add `#![feature(let_chains)]` to the crate attributes to enable
181 error[E0658]: `let` expressions in this position are unstable
182 --> $DIR/feature-gate.rs:65:20
184 LL | while true && (let 0 = 1) {}
187 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
188 = help: add `#![feature(let_chains)]` to the crate attributes to enable
190 error[E0658]: `let` expressions in this position are unstable
191 --> $DIR/feature-gate.rs:68:12
193 LL | while (let 0 = 1) && (let 0 = 1) {}
196 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
197 = help: add `#![feature(let_chains)]` to the crate attributes to enable
199 error[E0658]: `let` expressions in this position are unstable
200 --> $DIR/feature-gate.rs:68:27
202 LL | while (let 0 = 1) && (let 0 = 1) {}
205 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
206 = help: add `#![feature(let_chains)]` to the crate attributes to enable
208 error[E0658]: `let` expressions in this position are unstable
209 --> $DIR/feature-gate.rs:72:11
211 LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
214 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
215 = help: add `#![feature(let_chains)]` to the crate attributes to enable
217 error[E0658]: `let` expressions in this position are unstable
218 --> $DIR/feature-gate.rs:72:24
220 LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
223 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
224 = help: add `#![feature(let_chains)]` to the crate attributes to enable
226 error[E0658]: `let` expressions in this position are unstable
227 --> $DIR/feature-gate.rs:72:38
229 LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
232 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
233 = help: add `#![feature(let_chains)]` to the crate attributes to enable
235 error[E0658]: `let` expressions in this position are unstable
236 --> $DIR/feature-gate.rs:72:51
238 LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
241 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
242 = help: add `#![feature(let_chains)]` to the crate attributes to enable
244 error[E0658]: `let` expressions in this position are unstable
245 --> $DIR/feature-gate.rs:72:64
247 LL | while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
250 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
251 = help: add `#![feature(let_chains)]` to the crate attributes to enable
253 error[E0658]: `let` expressions in this position are unstable
254 --> $DIR/feature-gate.rs:79:11
256 LL | while let Range { start: _, end: _ } = (true..true) && false {}
257 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
262 error[E0658]: `let` expressions in this position are unstable
263 --> $DIR/feature-gate.rs:99:20
265 LL | #[cfg(FALSE)] (let 0 = 1);
268 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
269 = help: add `#![feature(let_chains)]` to the crate attributes to enable
271 error[E0658]: `let` expressions in this position are unstable
272 --> $DIR/feature-gate.rs:86:17
274 LL | noop_expr!((let 0 = 1));
277 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
278 = help: add `#![feature(let_chains)]` to the crate attributes to enable
280 error[E0658]: `let` expressions in this position are unstable
281 --> $DIR/feature-gate.rs:95:16
283 LL | use_expr!((let 0 = 1 && 0 == 0));
286 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
287 = help: add `#![feature(let_chains)]` to the crate attributes to enable
289 error[E0658]: `let` expressions in this position are unstable
290 --> $DIR/feature-gate.rs:97:16
292 LL | use_expr!((let 0 = 1));
295 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
296 = help: add `#![feature(let_chains)]` to the crate attributes to enable
298 error: aborting due to 33 previous errors
300 For more information about this error, try `rustc --explain E0658`.