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 error[E0658]: `if let` guards are experimental
77 --> $DIR/feature-gate.rs:7:12
79 LL | () if let 0 = 1 => {}
82 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
83 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
84 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
86 error[E0658]: `if let` guards are experimental
87 --> $DIR/feature-gate.rs:18:12
89 LL | () if true && let 0 = 1 => {}
90 | ^^^^^^^^^^^^^^^^^^^^
92 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
93 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
94 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
96 error[E0658]: `if let` guards are experimental
97 --> $DIR/feature-gate.rs:22:12
99 LL | () if let 0 = 1 && true => {}
100 | ^^^^^^^^^^^^^^^^^^^^
102 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
103 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
104 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
106 error[E0658]: `if let` guards are experimental
107 --> $DIR/feature-gate.rs:40:12
109 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
113 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
114 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
116 error[E0658]: `if let` guards are experimental
117 --> $DIR/feature-gate.rs:51:12
119 LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
120 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
123 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
124 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
126 error[E0658]: `if let` guards are experimental
127 --> $DIR/feature-gate.rs:76:12
129 LL | () if let 0 = 1 => {}
132 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
133 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
134 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
136 error[E0658]: `let` expressions in this position are unstable
137 --> $DIR/feature-gate.rs:10:16
139 LL | () if (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:14:18
148 LL | () if (((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:18:23
157 LL | () if 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:22:15
166 LL | () if 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:26:16
175 LL | () if (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:30:24
184 LL | () if 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:34:16
193 LL | () if (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:34:31
202 LL | () if (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:40:15
211 LL | () if 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:40:28
220 LL | () if 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:40:42
229 LL | () if 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:40:55
238 LL | () if 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:40:68
247 LL | () if 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:51:15
256 LL | () if 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:68:16
265 LL | use_expr!((let 0 = 1 && 0 == 0));
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:71:16
274 LL | use_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: aborting due to 34 previous errors
282 For more information about this error, try `rustc --explain E0658`.