]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2294-if-let-guard/feature-gate.stderr
1670078e0d38b6f9ce64f03ba003c7c6096893a4
[rust.git] / src / test / ui / rfc-2294-if-let-guard / feature-gate.stderr
1 error: no rules expected the token `let`
2   --> $DIR/feature-gate.rs:80:15
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
10 error[E0658]: `if let` guard is not implemented
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
19 error[E0658]: `if let` guard is not implemented
20   --> $DIR/feature-gate.rs:76:12
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
29   --> $DIR/feature-gate.rs:10:16
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
38   --> $DIR/feature-gate.rs:14:18
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
47   --> $DIR/feature-gate.rs:18:23
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
56   --> $DIR/feature-gate.rs:22:15
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
65   --> $DIR/feature-gate.rs:26:16
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
74   --> $DIR/feature-gate.rs:30:24
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
83   --> $DIR/feature-gate.rs:34:16
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
92   --> $DIR/feature-gate.rs:34:31
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
101   --> $DIR/feature-gate.rs:40:15
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
110   --> $DIR/feature-gate.rs:40:28
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
119   --> $DIR/feature-gate.rs:40:42
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
128   --> $DIR/feature-gate.rs:40:55
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
137   --> $DIR/feature-gate.rs:40:68
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
146   --> $DIR/feature-gate.rs:52:15
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
155   --> $DIR/feature-gate.rs:68:16
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
164   --> $DIR/feature-gate.rs:71:16
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
173   --> $DIR/feature-gate.rs:10:16
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
182   --> $DIR/feature-gate.rs:14:18
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
191   --> $DIR/feature-gate.rs:18:23
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
200   --> $DIR/feature-gate.rs:22:15
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
209   --> $DIR/feature-gate.rs:26:16
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
218   --> $DIR/feature-gate.rs:30:24
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
227   --> $DIR/feature-gate.rs:34:16
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
236   --> $DIR/feature-gate.rs:34:31
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
245   --> $DIR/feature-gate.rs:40:15
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
254   --> $DIR/feature-gate.rs:40:28
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
263   --> $DIR/feature-gate.rs:40:42
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
272   --> $DIR/feature-gate.rs:40:55
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
281   --> $DIR/feature-gate.rs:40:68
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
290   --> $DIR/feature-gate.rs:52:15
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
299   --> $DIR/feature-gate.rs:68:16
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
308   --> $DIR/feature-gate.rs:71:16
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
316 error: aborting due to 35 previous errors
317
318 For more information about this error, try `rustc --explain E0658`.