]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2294-if-let-guard/feature-gate.stderr
Rollup merge of #93813 - xldenis:public-mir-passes, r=wesleywiser
[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:69: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` guards are experimental
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    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
19
20 error[E0658]: `if let` guards are experimental
21   --> $DIR/feature-gate.rs:16:12
22    |
23 LL |         () if true && let 0 = 1 => {}
24    |            ^^^^^^^^^^^^^^^^^^^^
25    |
26    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
27    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
28    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
29
30 error[E0658]: `if let` guards are experimental
31   --> $DIR/feature-gate.rs:20:12
32    |
33 LL |         () if let 0 = 1 && true => {}
34    |            ^^^^^^^^^^^^^^^^^^^^
35    |
36    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
37    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
38    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
39
40 error[E0658]: `if let` guards are experimental
41   --> $DIR/feature-gate.rs:34:12
42    |
43 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
44    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45    |
46    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
47    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
48    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
49
50 error[E0658]: `if let` guards are experimental
51   --> $DIR/feature-gate.rs:42:12
52    |
53 LL |         () if let Range { start: _, end: _ } = (true..true) && false => {}
54    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55    |
56    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
57    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
58    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
59
60 error[E0658]: `if let` guards are experimental
61   --> $DIR/feature-gate.rs:65:12
62    |
63 LL |         () if let 0 = 1 => {}
64    |            ^^^^^^^^^^^^
65    |
66    = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
67    = help: add `#![feature(if_let_guard)]` to the crate attributes to enable
68    = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
69
70 error[E0658]: `let` expressions in this position are unstable
71   --> $DIR/feature-gate.rs:10:16
72    |
73 LL |         () if (let 0 = 1) => {}
74    |                ^^^^^^^^^
75    |
76    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
77    = help: add `#![feature(let_chains)]` to the crate attributes to enable
78
79 error[E0658]: `let` expressions in this position are unstable
80   --> $DIR/feature-gate.rs:13:18
81    |
82 LL |         () if (((let 0 = 1))) => {}
83    |                  ^^^^^^^^^
84    |
85    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
86    = help: add `#![feature(let_chains)]` to the crate attributes to enable
87
88 error[E0658]: `let` expressions in this position are unstable
89   --> $DIR/feature-gate.rs:16:23
90    |
91 LL |         () if true && let 0 = 1 => {}
92    |                       ^^^^^^^^^
93    |
94    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
95    = help: add `#![feature(let_chains)]` to the crate attributes to enable
96
97 error[E0658]: `let` expressions in this position are unstable
98   --> $DIR/feature-gate.rs:20:15
99    |
100 LL |         () if let 0 = 1 && true => {}
101    |               ^^^^^^^^^
102    |
103    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
104    = help: add `#![feature(let_chains)]` to the crate attributes to enable
105
106 error[E0658]: `let` expressions in this position are unstable
107   --> $DIR/feature-gate.rs:24:16
108    |
109 LL |         () if (let 0 = 1) && true => {}
110    |                ^^^^^^^^^
111    |
112    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
113    = help: add `#![feature(let_chains)]` to the crate attributes to enable
114
115 error[E0658]: `let` expressions in this position are unstable
116   --> $DIR/feature-gate.rs:27:24
117    |
118 LL |         () if true && (let 0 = 1) => {}
119    |                        ^^^^^^^^^
120    |
121    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
122    = help: add `#![feature(let_chains)]` to the crate attributes to enable
123
124 error[E0658]: `let` expressions in this position are unstable
125   --> $DIR/feature-gate.rs:30:16
126    |
127 LL |         () if (let 0 = 1) && (let 0 = 1) => {}
128    |                ^^^^^^^^^
129    |
130    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
131    = help: add `#![feature(let_chains)]` to the crate attributes to enable
132
133 error[E0658]: `let` expressions in this position are unstable
134   --> $DIR/feature-gate.rs:30:31
135    |
136 LL |         () if (let 0 = 1) && (let 0 = 1) => {}
137    |                               ^^^^^^^^^
138    |
139    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
140    = help: add `#![feature(let_chains)]` to the crate attributes to enable
141
142 error[E0658]: `let` expressions in this position are unstable
143   --> $DIR/feature-gate.rs:34:15
144    |
145 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
146    |               ^^^^^^^^^
147    |
148    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
149    = help: add `#![feature(let_chains)]` to the crate attributes to enable
150
151 error[E0658]: `let` expressions in this position are unstable
152   --> $DIR/feature-gate.rs:34:28
153    |
154 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
155    |                            ^^^^^^^^^
156    |
157    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
158    = help: add `#![feature(let_chains)]` to the crate attributes to enable
159
160 error[E0658]: `let` expressions in this position are unstable
161   --> $DIR/feature-gate.rs:34:42
162    |
163 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
164    |                                          ^^^^^^^^^
165    |
166    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
167    = help: add `#![feature(let_chains)]` to the crate attributes to enable
168
169 error[E0658]: `let` expressions in this position are unstable
170   --> $DIR/feature-gate.rs:34:55
171    |
172 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
173    |                                                       ^^^^^^^^^
174    |
175    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
176    = help: add `#![feature(let_chains)]` to the crate attributes to enable
177
178 error[E0658]: `let` expressions in this position are unstable
179   --> $DIR/feature-gate.rs:34:68
180    |
181 LL |         () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
182    |                                                                    ^^^^^^^^^
183    |
184    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
185    = help: add `#![feature(let_chains)]` to the crate attributes to enable
186
187 error[E0658]: `let` expressions in this position are unstable
188   --> $DIR/feature-gate.rs:42:15
189    |
190 LL |         () if let Range { start: _, end: _ } = (true..true) && false => {}
191    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192    |
193    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
194    = help: add `#![feature(let_chains)]` to the crate attributes to enable
195
196 error[E0658]: `let` expressions in this position are unstable
197   --> $DIR/feature-gate.rs:59:16
198    |
199 LL |     use_expr!((let 0 = 1 && 0 == 0));
200    |                ^^^^^^^^^
201    |
202    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
203    = help: add `#![feature(let_chains)]` to the crate attributes to enable
204
205 error[E0658]: `let` expressions in this position are unstable
206   --> $DIR/feature-gate.rs:61:16
207    |
208 LL |     use_expr!((let 0 = 1));
209    |                ^^^^^^^^^
210    |
211    = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
212    = help: add `#![feature(let_chains)]` to the crate attributes to enable
213
214 error: aborting due to 23 previous errors
215
216 For more information about this error, try `rustc --explain E0658`.