]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2294-if-let-guard/feature-gate.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / rfc-2294-if-let-guard / feature-gate.stderr
CommitLineData
3dfed10e 1error: no rules expected the token `let`
fc512014 2 --> $DIR/feature-gate.rs:80:15
3dfed10e
XL
3 |
4LL | macro_rules! use_expr {
5 | --------------------- when calling this macro
6...
7LL | use_expr!(let 0 = 1);
8 | ^^^ no rules expected this token in macro call
9
fc512014 10error[E0658]: `if let` guards are experimental
3dfed10e
XL
11 --> $DIR/feature-gate.rs:7:12
12 |
13LL | () 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
19error[E0658]: `if let` guards are experimental
20 --> $DIR/feature-gate.rs:76:12
3dfed10e
XL
21 |
22LL | () 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
28error[E0658]: `let` expressions in this position are experimental
fc512014 29 --> $DIR/feature-gate.rs:10:16
3dfed10e
XL
30 |
31LL | () 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
37error[E0658]: `let` expressions in this position are experimental
fc512014 38 --> $DIR/feature-gate.rs:14:18
3dfed10e
XL
39 |
40LL | () 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
46error[E0658]: `let` expressions in this position are experimental
fc512014 47 --> $DIR/feature-gate.rs:18:23
3dfed10e
XL
48 |
49LL | () 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
55error[E0658]: `let` expressions in this position are experimental
fc512014 56 --> $DIR/feature-gate.rs:22:15
3dfed10e
XL
57 |
58LL | () 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
64error[E0658]: `let` expressions in this position are experimental
fc512014 65 --> $DIR/feature-gate.rs:26:16
3dfed10e
XL
66 |
67LL | () 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
73error[E0658]: `let` expressions in this position are experimental
fc512014 74 --> $DIR/feature-gate.rs:30:24
3dfed10e
XL
75 |
76LL | () 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
82error[E0658]: `let` expressions in this position are experimental
fc512014 83 --> $DIR/feature-gate.rs:34:16
3dfed10e
XL
84 |
85LL | () 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
91error[E0658]: `let` expressions in this position are experimental
fc512014 92 --> $DIR/feature-gate.rs:34:31
3dfed10e
XL
93 |
94LL | () 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
100error[E0658]: `let` expressions in this position are experimental
fc512014 101 --> $DIR/feature-gate.rs:40:15
3dfed10e
XL
102 |
103LL | () 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
109error[E0658]: `let` expressions in this position are experimental
fc512014 110 --> $DIR/feature-gate.rs:40:28
3dfed10e
XL
111 |
112LL | () 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
118error[E0658]: `let` expressions in this position are experimental
fc512014 119 --> $DIR/feature-gate.rs:40:42
3dfed10e
XL
120 |
121LL | () 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
127error[E0658]: `let` expressions in this position are experimental
fc512014 128 --> $DIR/feature-gate.rs:40:55
3dfed10e
XL
129 |
130LL | () 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
136error[E0658]: `let` expressions in this position are experimental
fc512014 137 --> $DIR/feature-gate.rs:40:68
3dfed10e
XL
138 |
139LL | () 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
145error[E0658]: `let` expressions in this position are experimental
fc512014 146 --> $DIR/feature-gate.rs:52:15
3dfed10e
XL
147 |
148LL | () 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
154error[E0658]: `let` expressions in this position are experimental
fc512014 155 --> $DIR/feature-gate.rs:68:16
3dfed10e
XL
156 |
157LL | 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
163error[E0658]: `let` expressions in this position are experimental
fc512014 164 --> $DIR/feature-gate.rs:71:16
3dfed10e
XL
165 |
166LL | 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
172error: `let` expressions are not supported here
fc512014 173 --> $DIR/feature-gate.rs:10:16
3dfed10e
XL
174 |
175LL | () 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
181error: `let` expressions are not supported here
fc512014 182 --> $DIR/feature-gate.rs:14:18
3dfed10e
XL
183 |
184LL | () 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
190error: `let` expressions are not supported here
fc512014 191 --> $DIR/feature-gate.rs:18:23
3dfed10e
XL
192 |
193LL | () 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
199error: `let` expressions are not supported here
fc512014 200 --> $DIR/feature-gate.rs:22:15
3dfed10e
XL
201 |
202LL | () 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
208error: `let` expressions are not supported here
fc512014 209 --> $DIR/feature-gate.rs:26:16
3dfed10e
XL
210 |
211LL | () 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
217error: `let` expressions are not supported here
fc512014 218 --> $DIR/feature-gate.rs:30:24
3dfed10e
XL
219 |
220LL | () 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
226error: `let` expressions are not supported here
fc512014 227 --> $DIR/feature-gate.rs:34:16
3dfed10e
XL
228 |
229LL | () 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
235error: `let` expressions are not supported here
fc512014 236 --> $DIR/feature-gate.rs:34:31
3dfed10e
XL
237 |
238LL | () 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
244error: `let` expressions are not supported here
fc512014 245 --> $DIR/feature-gate.rs:40:15
3dfed10e
XL
246 |
247LL | () 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
253error: `let` expressions are not supported here
fc512014 254 --> $DIR/feature-gate.rs:40:28
3dfed10e
XL
255 |
256LL | () 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
262error: `let` expressions are not supported here
fc512014 263 --> $DIR/feature-gate.rs:40:42
3dfed10e
XL
264 |
265LL | () 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
271error: `let` expressions are not supported here
fc512014 272 --> $DIR/feature-gate.rs:40:55
3dfed10e
XL
273 |
274LL | () 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
280error: `let` expressions are not supported here
fc512014 281 --> $DIR/feature-gate.rs:40:68
3dfed10e
XL
282 |
283LL | () 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
289error: `let` expressions are not supported here
fc512014 290 --> $DIR/feature-gate.rs:52:15
3dfed10e
XL
291 |
292LL | () 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
298error: `let` expressions are not supported here
fc512014 299 --> $DIR/feature-gate.rs:68:16
3dfed10e
XL
300 |
301LL | 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
307error: `let` expressions are not supported here
fc512014 308 --> $DIR/feature-gate.rs:71:16
3dfed10e
XL
309 |
310LL | 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 316error: aborting due to 35 previous errors
3dfed10e
XL
317
318For more information about this error, try `rustc --explain E0658`.