1 error: expected expression, found `let` statement
2 --> $DIR/feature-gate.rs:10:16
4 LL | () if (let 0 = 1) => {}
7 error: expected expression, found `let` statement
8 --> $DIR/feature-gate.rs:14:18
10 LL | () if (((let 0 = 1))) => {}
13 error: expected expression, found `let` statement
14 --> $DIR/feature-gate.rs:26:16
16 LL | () if (let 0 = 1) && true => {}
19 error: expected expression, found `let` statement
20 --> $DIR/feature-gate.rs:30:24
22 LL | () if true && (let 0 = 1) => {}
25 error: expected expression, found `let` statement
26 --> $DIR/feature-gate.rs:34:16
28 LL | () if (let 0 = 1) && (let 0 = 1) => {}
31 error: expected expression, found `let` statement
32 --> $DIR/feature-gate.rs:34:31
34 LL | () if (let 0 = 1) && (let 0 = 1) => {}
37 error: expected expression, found `let` statement
38 --> $DIR/feature-gate.rs:40:42
40 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
43 error: expected expression, found `let` statement
44 --> $DIR/feature-gate.rs:40:55
46 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
49 error: expected expression, found `let` statement
50 --> $DIR/feature-gate.rs:40:68
52 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
55 error: expected expression, found `let` statement
56 --> $DIR/feature-gate.rs:68:16
58 LL | use_expr!((let 0 = 1 && 0 == 0));
61 error: expected expression, found `let` statement
62 --> $DIR/feature-gate.rs:71:16
64 LL | use_expr!((let 0 = 1));
67 error: no rules expected the token `let`
68 --> $DIR/feature-gate.rs:80:15
70 LL | macro_rules! use_expr {
71 | --------------------- when calling this macro
73 LL | use_expr!(let 0 = 1);
74 | ^^^ no rules expected this token in macro call
76 note: while trying to match meta-variable `$e:expr`
77 --> $DIR/feature-gate.rs:61:10
82 error[E0658]: `if let` guards are experimental
83 --> $DIR/feature-gate.rs:7:12
85 LL | () if let 0 = 1 => {}
88 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
89 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
90 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
92 error[E0658]: `if let` guards are experimental
93 --> $DIR/feature-gate.rs:18:12
95 LL | () if true && let 0 = 1 => {}
96 | ^^^^^^^^^^^^^^^^^^^^
98 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
99 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
100 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
102 error[E0658]: `if let` guards are experimental
103 --> $DIR/feature-gate.rs:22:12
105 LL | () if let 0 = 1 && true => {}
106 | ^^^^^^^^^^^^^^^^^^^^
108 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
109 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
110 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
112 error[E0658]: `if let` guards are experimental
113 --> $DIR/feature-gate.rs:40:12
115 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
119 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
120 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
122 error[E0658]: `if let` guards are experimental
123 --> $DIR/feature-gate.rs:51:12
125 LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
129 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
130 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
132 error[E0658]: `if let` guards are experimental
133 --> $DIR/feature-gate.rs:76:12
135 LL | () if let 0 = 1 => {}
138 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
139 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
140 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
142 error[E0658]: `let` expressions in this position are unstable
143 --> $DIR/feature-gate.rs:10:16
145 LL | () if (let 0 = 1) => {}
148 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
149 = help: add `#![feature(let_chains)]` to the crate attributes to enable
151 error[E0658]: `let` expressions in this position are unstable
152 --> $DIR/feature-gate.rs:14:18
154 LL | () if (((let 0 = 1))) => {}
157 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
158 = help: add `#![feature(let_chains)]` to the crate attributes to enable
160 error[E0658]: `let` expressions in this position are unstable
161 --> $DIR/feature-gate.rs:18:23
163 LL | () if true && let 0 = 1 => {}
166 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
167 = help: add `#![feature(let_chains)]` to the crate attributes to enable
169 error[E0658]: `let` expressions in this position are unstable
170 --> $DIR/feature-gate.rs:22:15
172 LL | () if let 0 = 1 && true => {}
175 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
176 = help: add `#![feature(let_chains)]` to the crate attributes to enable
178 error[E0658]: `let` expressions in this position are unstable
179 --> $DIR/feature-gate.rs:26:16
181 LL | () if (let 0 = 1) && true => {}
184 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
185 = help: add `#![feature(let_chains)]` to the crate attributes to enable
187 error[E0658]: `let` expressions in this position are unstable
188 --> $DIR/feature-gate.rs:30:24
190 LL | () if true && (let 0 = 1) => {}
193 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
194 = help: add `#![feature(let_chains)]` to the crate attributes to enable
196 error[E0658]: `let` expressions in this position are unstable
197 --> $DIR/feature-gate.rs:34:16
199 LL | () if (let 0 = 1) && (let 0 = 1) => {}
202 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
203 = help: add `#![feature(let_chains)]` to the crate attributes to enable
205 error[E0658]: `let` expressions in this position are unstable
206 --> $DIR/feature-gate.rs:34:31
208 LL | () if (let 0 = 1) && (let 0 = 1) => {}
211 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
212 = help: add `#![feature(let_chains)]` to the crate attributes to enable
214 error[E0658]: `let` expressions in this position are unstable
215 --> $DIR/feature-gate.rs:40:15
217 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
220 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
221 = help: add `#![feature(let_chains)]` to the crate attributes to enable
223 error[E0658]: `let` expressions in this position are unstable
224 --> $DIR/feature-gate.rs:40:28
226 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
229 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
230 = help: add `#![feature(let_chains)]` to the crate attributes to enable
232 error[E0658]: `let` expressions in this position are unstable
233 --> $DIR/feature-gate.rs:40:42
235 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
238 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
239 = help: add `#![feature(let_chains)]` to the crate attributes to enable
241 error[E0658]: `let` expressions in this position are unstable
242 --> $DIR/feature-gate.rs:40:55
244 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
247 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
248 = help: add `#![feature(let_chains)]` to the crate attributes to enable
250 error[E0658]: `let` expressions in this position are unstable
251 --> $DIR/feature-gate.rs:40:68
253 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
256 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
257 = help: add `#![feature(let_chains)]` to the crate attributes to enable
259 error[E0658]: `let` expressions in this position are unstable
260 --> $DIR/feature-gate.rs:51:15
262 LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
263 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
265 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
266 = help: add `#![feature(let_chains)]` to the crate attributes to enable
268 error[E0658]: `let` expressions in this position are unstable
269 --> $DIR/feature-gate.rs:68:16
271 LL | use_expr!((let 0 = 1 && 0 == 0));
274 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
275 = help: add `#![feature(let_chains)]` to the crate attributes to enable
277 error[E0658]: `let` expressions in this position are unstable
278 --> $DIR/feature-gate.rs:71:16
280 LL | use_expr!((let 0 = 1));
283 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
284 = help: add `#![feature(let_chains)]` to the crate attributes to enable
286 error: aborting due to 34 previous errors
288 For more information about this error, try `rustc --explain E0658`.