]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2294-if-let-guard/feature-gate.stderr
Rollup merge of #101171 - thomcc:fix-winfs-ub, r=ChrisDenton
[rust.git] / src / test / ui / rfc-2294-if-let-guard / feature-gate.stderr
1 error: expected expression, found `let` statement
2   --> $DIR/feature-gate.rs:10:16
3    |
4 LL |         () if (let 0 = 1) => {}
5    |                ^^^
6
7 error: expected expression, found `let` statement
8   --> $DIR/feature-gate.rs:14:18
9    |
10 LL |         () if (((let 0 = 1))) => {}
11    |                  ^^^
12
13 error: expected expression, found `let` statement
14   --> $DIR/feature-gate.rs:26:16
15    |
16 LL |         () if (let 0 = 1) && true => {}
17    |                ^^^
18
19 error: expected expression, found `let` statement
20   --> $DIR/feature-gate.rs:30:24
21    |
22 LL |         () if true && (let 0 = 1) => {}
23    |                        ^^^
24
25 error: expected expression, found `let` statement
26   --> $DIR/feature-gate.rs:34:16
27    |
28 LL |         () if (let 0 = 1) && (let 0 = 1) => {}
29    |                ^^^
30
31 error: expected expression, found `let` statement
32   --> $DIR/feature-gate.rs:34:31
33    |
34 LL |         () if (let 0 = 1) && (let 0 = 1) => {}
35    |                               ^^^
36
37 error: expected expression, found `let` statement
38   --> $DIR/feature-gate.rs:40:42
39    |
40 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
41    |                                          ^^^
42
43 error: expected expression, found `let` statement
44   --> $DIR/feature-gate.rs:40:55
45    |
46 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
47    |                                                       ^^^
48
49 error: expected expression, found `let` statement
50   --> $DIR/feature-gate.rs:40:68
51    |
52 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
53    |                                                                    ^^^
54
55 error: expected expression, found `let` statement
56   --> $DIR/feature-gate.rs:68:16
57    |
58 LL |     use_expr!((let 0 = 1 && 0 == 0));
59    |                ^^^
60
61 error: expected expression, found `let` statement
62   --> $DIR/feature-gate.rs:71:16
63    |
64 LL |     use_expr!((let 0 = 1));
65    |                ^^^
66
67 error: no rules expected the token `let`
68   --> $DIR/feature-gate.rs:80:15
69    |
70 LL |     macro_rules! use_expr {
71    |     --------------------- when calling this macro
72 ...
73 LL |     use_expr!(let 0 = 1);
74    |               ^^^ no rules expected this token in macro call
75
76 error[E0658]: `if let` guards are experimental
77   --> $DIR/feature-gate.rs:7:12
78    |
79 LL |         () if let 0 = 1 => {}
80    |            ^^^^^^^^^^^^
81    |
82    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
83    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
84    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
85
86 error[E0658]: `if let` guards are experimental
87   --> $DIR/feature-gate.rs:18:12
88    |
89 LL |         () if true && let 0 = 1 => {}
90    |            ^^^^^^^^^^^^^^^^^^^^
91    |
92    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
93    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
94    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
95
96 error[E0658]: `if let` guards are experimental
97   --> $DIR/feature-gate.rs:22:12
98    |
99 LL |         () if let 0 = 1 && true => {}
100    |            ^^^^^^^^^^^^^^^^^^^^
101    |
102    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
103    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
104    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
105
106 error[E0658]: `if let` guards are experimental
107   --> $DIR/feature-gate.rs:40:12
108    |
109 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
110    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
111    |
112    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
113    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
114    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
115
116 error[E0658]: `if let` guards are experimental
117   --> $DIR/feature-gate.rs:51:12
118    |
119 LL |         () if let Range { start: _, end: _ } = (true..true) && false => {}
120    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
121    |
122    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
123    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
124    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
125
126 error[E0658]: `if let` guards are experimental
127   --> $DIR/feature-gate.rs:76:12
128    |
129 LL |         () if let 0 = 1 => {}
130    |            ^^^^^^^^^^^^
131    |
132    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
133    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
134    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
135
136 error[E0658]: `let` expressions in this position are unstable
137   --> $DIR/feature-gate.rs:10:16
138    |
139 LL |         () if (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:14:18
147    |
148 LL |         () if (((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:18:23
156    |
157 LL |         () if 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:22:15
165    |
166 LL |         () if 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:26:16
174    |
175 LL |         () if (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:30:24
183    |
184 LL |         () if 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:34:16
192    |
193 LL |         () if (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:34:31
201    |
202 LL |         () if (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:40:15
210    |
211 LL |         () if 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:40:28
219    |
220 LL |         () if 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:40:42
228    |
229 LL |         () if 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:40:55
237    |
238 LL |         () if 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:40:68
246    |
247 LL |         () if 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:51:15
255    |
256 LL |         () if 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:68:16
264    |
265 LL |     use_expr!((let 0 = 1 && 0 == 0));
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:71:16
273    |
274 LL |     use_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: aborting due to 34 previous errors
281
282 For more information about this error, try `rustc --explain E0658`.