]>
Commit | Line | Data |
---|---|---|
3dfed10e | 1 | error: no rules expected the token `let` |
fc512014 | 2 | --> $DIR/feature-gate.rs:80:15 |
3dfed10e XL |
3 | | |
4 | LL | macro_rules! use_expr { | |
5 | | --------------------- when calling this macro | |
6 | ... | |
7 | LL | use_expr!(let 0 = 1); | |
8 | | ^^^ no rules expected this token in macro call | |
9 | ||
fc512014 | 10 | error[E0658]: `if let` guards are experimental |
3dfed10e XL |
11 | --> $DIR/feature-gate.rs:7:12 |
12 | | | |
13 | LL | () if let 0 = 1 => {} | |
14 | | ^^^^^^^^^^^^ | |
15 | | | |
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 | ||
fc512014 XL |
19 | error[E0658]: `if let` guards are experimental |
20 | --> $DIR/feature-gate.rs:76:12 | |
3dfed10e XL |
21 | | |
22 | LL | () if let 0 = 1 => {} | |
23 | | ^^^^^^^^^^^^ | |
24 | | | |
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 | |
27 | ||
28 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 29 | --> $DIR/feature-gate.rs:10:16 |
3dfed10e XL |
30 | | |
31 | LL | () if (let 0 = 1) => {} | |
32 | | ^^^^^^^^^ | |
33 | | | |
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 | |
36 | ||
37 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 38 | --> $DIR/feature-gate.rs:14:18 |
3dfed10e XL |
39 | | |
40 | LL | () if (((let 0 = 1))) => {} | |
41 | | ^^^^^^^^^ | |
42 | | | |
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 | |
45 | ||
46 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 47 | --> $DIR/feature-gate.rs:18:23 |
3dfed10e XL |
48 | | |
49 | LL | () if true && let 0 = 1 => {} | |
50 | | ^^^^^^^^^ | |
51 | | | |
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 | |
54 | ||
55 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 56 | --> $DIR/feature-gate.rs:22:15 |
3dfed10e XL |
57 | | |
58 | LL | () if let 0 = 1 && true => {} | |
59 | | ^^^^^^^^^ | |
60 | | | |
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 | |
63 | ||
64 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 65 | --> $DIR/feature-gate.rs:26:16 |
3dfed10e XL |
66 | | |
67 | LL | () if (let 0 = 1) && true => {} | |
68 | | ^^^^^^^^^ | |
69 | | | |
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 | |
72 | ||
73 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 74 | --> $DIR/feature-gate.rs:30:24 |
3dfed10e XL |
75 | | |
76 | LL | () if true && (let 0 = 1) => {} | |
77 | | ^^^^^^^^^ | |
78 | | | |
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 | |
81 | ||
82 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 83 | --> $DIR/feature-gate.rs:34:16 |
3dfed10e XL |
84 | | |
85 | LL | () if (let 0 = 1) && (let 0 = 1) => {} | |
86 | | ^^^^^^^^^ | |
87 | | | |
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 | |
90 | ||
91 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 92 | --> $DIR/feature-gate.rs:34:31 |
3dfed10e XL |
93 | | |
94 | LL | () if (let 0 = 1) && (let 0 = 1) => {} | |
95 | | ^^^^^^^^^ | |
96 | | | |
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 | |
99 | ||
100 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 101 | --> $DIR/feature-gate.rs:40:15 |
3dfed10e XL |
102 | | |
103 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
104 | | ^^^^^^^^^ | |
105 | | | |
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 | |
108 | ||
109 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 110 | --> $DIR/feature-gate.rs:40:28 |
3dfed10e XL |
111 | | |
112 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
113 | | ^^^^^^^^^ | |
114 | | | |
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 | |
117 | ||
118 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 119 | --> $DIR/feature-gate.rs:40:42 |
3dfed10e XL |
120 | | |
121 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
122 | | ^^^^^^^^^ | |
123 | | | |
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 | |
126 | ||
127 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 128 | --> $DIR/feature-gate.rs:40:55 |
3dfed10e XL |
129 | | |
130 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
131 | | ^^^^^^^^^ | |
132 | | | |
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 | |
135 | ||
136 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 137 | --> $DIR/feature-gate.rs:40:68 |
3dfed10e XL |
138 | | |
139 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
140 | | ^^^^^^^^^ | |
141 | | | |
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 | |
144 | ||
145 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 146 | --> $DIR/feature-gate.rs:52:15 |
3dfed10e XL |
147 | | |
148 | LL | () if let Range { start: _, end: _ } = (true..true) && false => {} | |
149 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
150 | | | |
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 | |
153 | ||
154 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 155 | --> $DIR/feature-gate.rs:68:16 |
3dfed10e XL |
156 | | |
157 | LL | use_expr!((let 0 = 1 && 0 == 0)); | |
158 | | ^^^^^^^^^ | |
159 | | | |
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 | |
162 | ||
163 | error[E0658]: `let` expressions in this position are experimental | |
fc512014 | 164 | --> $DIR/feature-gate.rs:71:16 |
3dfed10e XL |
165 | | |
166 | LL | use_expr!((let 0 = 1)); | |
167 | | ^^^^^^^^^ | |
168 | | | |
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 | |
171 | ||
172 | error: `let` expressions are not supported here | |
fc512014 | 173 | --> $DIR/feature-gate.rs:10:16 |
3dfed10e XL |
174 | | |
175 | LL | () if (let 0 = 1) => {} | |
176 | | ^^^^^^^^^ | |
177 | | | |
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 | |
180 | ||
181 | error: `let` expressions are not supported here | |
fc512014 | 182 | --> $DIR/feature-gate.rs:14:18 |
3dfed10e XL |
183 | | |
184 | LL | () if (((let 0 = 1))) => {} | |
185 | | ^^^^^^^^^ | |
186 | | | |
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 | |
189 | ||
190 | error: `let` expressions are not supported here | |
fc512014 | 191 | --> $DIR/feature-gate.rs:18:23 |
3dfed10e XL |
192 | | |
193 | LL | () if true && let 0 = 1 => {} | |
194 | | ^^^^^^^^^ | |
195 | | | |
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 | |
198 | ||
199 | error: `let` expressions are not supported here | |
fc512014 | 200 | --> $DIR/feature-gate.rs:22:15 |
3dfed10e XL |
201 | | |
202 | LL | () if let 0 = 1 && true => {} | |
203 | | ^^^^^^^^^ | |
204 | | | |
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 | |
207 | ||
208 | error: `let` expressions are not supported here | |
fc512014 | 209 | --> $DIR/feature-gate.rs:26:16 |
3dfed10e XL |
210 | | |
211 | LL | () if (let 0 = 1) && true => {} | |
212 | | ^^^^^^^^^ | |
213 | | | |
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 | |
216 | ||
217 | error: `let` expressions are not supported here | |
fc512014 | 218 | --> $DIR/feature-gate.rs:30:24 |
3dfed10e XL |
219 | | |
220 | LL | () if true && (let 0 = 1) => {} | |
221 | | ^^^^^^^^^ | |
222 | | | |
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 | |
225 | ||
226 | error: `let` expressions are not supported here | |
fc512014 | 227 | --> $DIR/feature-gate.rs:34:16 |
3dfed10e XL |
228 | | |
229 | LL | () if (let 0 = 1) && (let 0 = 1) => {} | |
230 | | ^^^^^^^^^ | |
231 | | | |
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 | |
234 | ||
235 | error: `let` expressions are not supported here | |
fc512014 | 236 | --> $DIR/feature-gate.rs:34:31 |
3dfed10e XL |
237 | | |
238 | LL | () if (let 0 = 1) && (let 0 = 1) => {} | |
239 | | ^^^^^^^^^ | |
240 | | | |
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 | |
243 | ||
244 | error: `let` expressions are not supported here | |
fc512014 | 245 | --> $DIR/feature-gate.rs:40:15 |
3dfed10e XL |
246 | | |
247 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
248 | | ^^^^^^^^^ | |
249 | | | |
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 | |
252 | ||
253 | error: `let` expressions are not supported here | |
fc512014 | 254 | --> $DIR/feature-gate.rs:40:28 |
3dfed10e XL |
255 | | |
256 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
257 | | ^^^^^^^^^ | |
258 | | | |
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 | |
261 | ||
262 | error: `let` expressions are not supported here | |
fc512014 | 263 | --> $DIR/feature-gate.rs:40:42 |
3dfed10e XL |
264 | | |
265 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
266 | | ^^^^^^^^^ | |
267 | | | |
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 | |
270 | ||
271 | error: `let` expressions are not supported here | |
fc512014 | 272 | --> $DIR/feature-gate.rs:40:55 |
3dfed10e XL |
273 | | |
274 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
275 | | ^^^^^^^^^ | |
276 | | | |
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 | |
279 | ||
280 | error: `let` expressions are not supported here | |
fc512014 | 281 | --> $DIR/feature-gate.rs:40:68 |
3dfed10e XL |
282 | | |
283 | LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} | |
284 | | ^^^^^^^^^ | |
285 | | | |
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 | |
288 | ||
289 | error: `let` expressions are not supported here | |
fc512014 | 290 | --> $DIR/feature-gate.rs:52:15 |
3dfed10e XL |
291 | | |
292 | LL | () if let Range { start: _, end: _ } = (true..true) && false => {} | |
293 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
294 | | | |
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 | |
297 | ||
298 | error: `let` expressions are not supported here | |
fc512014 | 299 | --> $DIR/feature-gate.rs:68:16 |
3dfed10e XL |
300 | | |
301 | LL | use_expr!((let 0 = 1 && 0 == 0)); | |
302 | | ^^^^^^^^^ | |
303 | | | |
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 | |
306 | ||
307 | error: `let` expressions are not supported here | |
fc512014 | 308 | --> $DIR/feature-gate.rs:71:16 |
3dfed10e XL |
309 | | |
310 | LL | use_expr!((let 0 = 1)); | |
311 | | ^^^^^^^^^ | |
312 | | | |
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 | |
315 | ||
fc512014 | 316 | error: aborting due to 35 previous errors |
3dfed10e XL |
317 | |
318 | For more information about this error, try `rustc --explain E0658`. |