]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/feature-gate.stderr
Rollup merge of #93663 - sunfishcode:sunfishcode/as-raw-name, r=joshtriplett
[rust.git] / src / test / ui / rfc-2497-if-let-chains / feature-gate.stderr
1 error: no rules expected the token `let`
2   --> $DIR/feature-gate.rs:101: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]: `let` expressions in this position are unstable
11   --> $DIR/feature-gate.rs:14:9
12    |
13 LL |     if (let 0 = 1) {}
14    |         ^^^^^^^^^
15    |
16    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
17    = help: add `#![feature(let_chains)]` to the crate attributes to enable
18
19 error[E0658]: `let` expressions in this position are unstable
20   --> $DIR/feature-gate.rs:17:11
21    |
22 LL |     if (((let 0 = 1))) {}
23    |           ^^^^^^^^^
24    |
25    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
26    = help: add `#![feature(let_chains)]` to the crate attributes to enable
27
28 error[E0658]: `let` expressions in this position are unstable
29   --> $DIR/feature-gate.rs:20:16
30    |
31 LL |     if true && 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 unstable
38   --> $DIR/feature-gate.rs:23:8
39    |
40 LL |     if let 0 = 1 && true {}
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 unstable
47   --> $DIR/feature-gate.rs:26:9
48    |
49 LL |     if (let 0 = 1) && true {}
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 unstable
56   --> $DIR/feature-gate.rs:29:17
57    |
58 LL |     if true && (let 0 = 1) {}
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 unstable
65   --> $DIR/feature-gate.rs:32:9
66    |
67 LL |     if (let 0 = 1) && (let 0 = 1) {}
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 unstable
74   --> $DIR/feature-gate.rs:32:24
75    |
76 LL |     if (let 0 = 1) && (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 unstable
83   --> $DIR/feature-gate.rs:36:8
84    |
85 LL |     if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
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 unstable
92   --> $DIR/feature-gate.rs:36:21
93    |
94 LL |     if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
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 unstable
101   --> $DIR/feature-gate.rs:36:35
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 unstable
110   --> $DIR/feature-gate.rs:36:48
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 unstable
119   --> $DIR/feature-gate.rs:36:61
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 unstable
128   --> $DIR/feature-gate.rs:43:8
129    |
130 LL |     if let Range { start: _, end: _ } = (true..true) && false {}
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 unstable
137   --> $DIR/feature-gate.rs:50:12
138    |
139 LL |     while (let 0 = 1) {}
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 unstable
146   --> $DIR/feature-gate.rs:53:14
147    |
148 LL |     while (((let 0 = 1))) {}
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 unstable
155   --> $DIR/feature-gate.rs:56:19
156    |
157 LL |     while true && let 0 = 1 {}
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 unstable
164   --> $DIR/feature-gate.rs:59:11
165    |
166 LL |     while let 0 = 1 && true {}
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[E0658]: `let` expressions in this position are unstable
173   --> $DIR/feature-gate.rs:62:12
174    |
175 LL |     while (let 0 = 1) && true {}
176    |            ^^^^^^^^^
177    |
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
180
181 error[E0658]: `let` expressions in this position are unstable
182   --> $DIR/feature-gate.rs:65:20
183    |
184 LL |     while true && (let 0 = 1) {}
185    |                    ^^^^^^^^^
186    |
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
189
190 error[E0658]: `let` expressions in this position are unstable
191   --> $DIR/feature-gate.rs:68:12
192    |
193 LL |     while (let 0 = 1) && (let 0 = 1) {}
194    |            ^^^^^^^^^
195    |
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
198
199 error[E0658]: `let` expressions in this position are unstable
200   --> $DIR/feature-gate.rs:68:27
201    |
202 LL |     while (let 0 = 1) && (let 0 = 1) {}
203    |                           ^^^^^^^^^
204    |
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
207
208 error[E0658]: `let` expressions in this position are unstable
209   --> $DIR/feature-gate.rs:72:11
210    |
211 LL |     while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
212    |           ^^^^^^^^^
213    |
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
216
217 error[E0658]: `let` expressions in this position are unstable
218   --> $DIR/feature-gate.rs:72:24
219    |
220 LL |     while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
221    |                        ^^^^^^^^^
222    |
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
225
226 error[E0658]: `let` expressions in this position are unstable
227   --> $DIR/feature-gate.rs:72:38
228    |
229 LL |     while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
230    |                                      ^^^^^^^^^
231    |
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
234
235 error[E0658]: `let` expressions in this position are unstable
236   --> $DIR/feature-gate.rs:72:51
237    |
238 LL |     while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
239    |                                                   ^^^^^^^^^
240    |
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
243
244 error[E0658]: `let` expressions in this position are unstable
245   --> $DIR/feature-gate.rs:72:64
246    |
247 LL |     while let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) {}
248    |                                                                ^^^^^^^^^
249    |
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
252
253 error[E0658]: `let` expressions in this position are unstable
254   --> $DIR/feature-gate.rs:79:11
255    |
256 LL |     while let Range { start: _, end: _ } = (true..true) && false {}
257    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
258    |
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
261
262 error[E0658]: `let` expressions in this position are unstable
263   --> $DIR/feature-gate.rs:99:20
264    |
265 LL |     #[cfg(FALSE)] (let 0 = 1);
266    |                    ^^^^^^^^^
267    |
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
270
271 error[E0658]: `let` expressions in this position are unstable
272   --> $DIR/feature-gate.rs:86:17
273    |
274 LL |     noop_expr!((let 0 = 1));
275    |                 ^^^^^^^^^
276    |
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
279
280 error[E0658]: `let` expressions in this position are unstable
281   --> $DIR/feature-gate.rs:95:16
282    |
283 LL |     use_expr!((let 0 = 1 && 0 == 0));
284    |                ^^^^^^^^^
285    |
286    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
287    = help: add `#![feature(let_chains)]` to the crate attributes to enable
288
289 error[E0658]: `let` expressions in this position are unstable
290   --> $DIR/feature-gate.rs:97:16
291    |
292 LL |     use_expr!((let 0 = 1));
293    |                ^^^^^^^^^
294    |
295    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
296    = help: add `#![feature(let_chains)]` to the crate attributes to enable
297
298 error: aborting due to 33 previous errors
299
300 For more information about this error, try `rustc --explain E0658`.