1 error: no rules expected the token `let`
2 --> $DIR/feature-gate.rs:69: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` guards are experimental
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
18 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
20 error[E0658]: `if let` guards are experimental
21 --> $DIR/feature-gate.rs:16:12
23 LL | () if true && let 0 = 1 => {}
24 | ^^^^^^^^^^^^^^^^^^^^
26 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
27 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
28 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
30 error[E0658]: `if let` guards are experimental
31 --> $DIR/feature-gate.rs:20:12
33 LL | () if let 0 = 1 && true => {}
34 | ^^^^^^^^^^^^^^^^^^^^
36 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
37 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
38 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
40 error[E0658]: `if let` guards are experimental
41 --> $DIR/feature-gate.rs:34:12
43 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
47 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
48 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
50 error[E0658]: `if let` guards are experimental
51 --> $DIR/feature-gate.rs:42:12
53 LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
54 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
57 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
58 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
60 error[E0658]: `if let` guards are experimental
61 --> $DIR/feature-gate.rs:65:12
63 LL | () if let 0 = 1 => {}
66 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
67 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
68 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
70 error[E0658]: `let` expressions in this position are unstable
71 --> $DIR/feature-gate.rs:10:16
73 LL | () if (let 0 = 1) => {}
76 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
77 = help: add `#![feature(let_chains)]` to the crate attributes to enable
79 error[E0658]: `let` expressions in this position are unstable
80 --> $DIR/feature-gate.rs:13:18
82 LL | () if (((let 0 = 1))) => {}
85 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
86 = help: add `#![feature(let_chains)]` to the crate attributes to enable
88 error[E0658]: `let` expressions in this position are unstable
89 --> $DIR/feature-gate.rs:16:23
91 LL | () if true && let 0 = 1 => {}
94 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
95 = help: add `#![feature(let_chains)]` to the crate attributes to enable
97 error[E0658]: `let` expressions in this position are unstable
98 --> $DIR/feature-gate.rs:20:15
100 LL | () if let 0 = 1 && true => {}
103 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
104 = help: add `#![feature(let_chains)]` to the crate attributes to enable
106 error[E0658]: `let` expressions in this position are unstable
107 --> $DIR/feature-gate.rs:24:16
109 LL | () if (let 0 = 1) && true => {}
112 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
113 = help: add `#![feature(let_chains)]` to the crate attributes to enable
115 error[E0658]: `let` expressions in this position are unstable
116 --> $DIR/feature-gate.rs:27:24
118 LL | () if true && (let 0 = 1) => {}
121 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
122 = help: add `#![feature(let_chains)]` to the crate attributes to enable
124 error[E0658]: `let` expressions in this position are unstable
125 --> $DIR/feature-gate.rs:30:16
127 LL | () if (let 0 = 1) && (let 0 = 1) => {}
130 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
131 = help: add `#![feature(let_chains)]` to the crate attributes to enable
133 error[E0658]: `let` expressions in this position are unstable
134 --> $DIR/feature-gate.rs:30:31
136 LL | () if (let 0 = 1) && (let 0 = 1) => {}
139 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
140 = help: add `#![feature(let_chains)]` to the crate attributes to enable
142 error[E0658]: `let` expressions in this position are unstable
143 --> $DIR/feature-gate.rs:34:15
145 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
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:34:28
154 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
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:34:42
163 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
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:34:55
172 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
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:34:68
181 LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
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:42:15
190 LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
191 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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:59:16
199 LL | use_expr!((let 0 = 1 && 0 == 0));
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:61:16
208 LL | use_expr!((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: aborting due to 23 previous errors
216 For more information about this error, try `rustc --explain E0658`.