1
1
error: expected expression, found `let` statement
2
- --> $DIR/feature-gate.rs:59:16
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:66:16
3
45
|
4
46
LL | use_expr!((let 0 = 1 && 0 == 0));
5
47
| ^^^
6
48
7
49
error: expected expression, found `let` statement
8
- --> $DIR/feature-gate.rs:62 :16
50
+ --> $DIR/feature-gate.rs:69 :16
9
51
|
10
52
LL | use_expr!((let 0 = 1));
11
53
| ^^^
12
54
13
55
error: no rules expected the token `let`
14
- --> $DIR/feature-gate.rs:71 :15
56
+ --> $DIR/feature-gate.rs:78 :15
15
57
|
16
58
LL | macro_rules! use_expr {
17
59
| --------------------- when calling this macro
@@ -30,7 +72,7 @@ LL | () if let 0 = 1 => {}
30
72
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
31
73
32
74
error[E0658]: `if let` guards are experimental
33
- --> $DIR/feature-gate.rs:16 :12
75
+ --> $DIR/feature-gate.rs:18 :12
34
76
|
35
77
LL | () if true && let 0 = 1 => {}
36
78
| ^^^^^^^^^^^^^^^^^^^^
@@ -40,7 +82,7 @@ LL | () if true && let 0 = 1 => {}
40
82
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
41
83
42
84
error[E0658]: `if let` guards are experimental
43
- --> $DIR/feature-gate.rs:20 :12
85
+ --> $DIR/feature-gate.rs:22 :12
44
86
|
45
87
LL | () if let 0 = 1 && true => {}
46
88
| ^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +92,7 @@ LL | () if let 0 = 1 && true => {}
50
92
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
51
93
52
94
error[E0658]: `if let` guards are experimental
53
- --> $DIR/feature-gate.rs:34 :12
95
+ --> $DIR/feature-gate.rs:40 :12
54
96
|
55
97
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
56
98
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -60,7 +102,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
60
102
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
61
103
62
104
error[E0658]: `if let` guards are experimental
63
- --> $DIR/feature-gate.rs:42 :12
105
+ --> $DIR/feature-gate.rs:49 :12
64
106
|
65
107
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
66
108
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -70,7 +112,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
70
112
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
71
113
72
114
error[E0658]: `if let` guards are experimental
73
- --> $DIR/feature-gate.rs:67 :12
115
+ --> $DIR/feature-gate.rs:74 :12
74
116
|
75
117
LL | () if let 0 = 1 => {}
76
118
| ^^^^^^^^^^^^
@@ -89,7 +131,7 @@ LL | () if (let 0 = 1) => {}
89
131
= help: add `#![feature(let_chains)]` to the crate attributes to enable
90
132
91
133
error[E0658]: `let` expressions in this position are unstable
92
- --> $DIR/feature-gate.rs:13 :18
134
+ --> $DIR/feature-gate.rs:14 :18
93
135
|
94
136
LL | () if (((let 0 = 1))) => {}
95
137
| ^^^^^^^^^
@@ -98,7 +140,7 @@ LL | () if (((let 0 = 1))) => {}
98
140
= help: add `#![feature(let_chains)]` to the crate attributes to enable
99
141
100
142
error[E0658]: `let` expressions in this position are unstable
101
- --> $DIR/feature-gate.rs:16 :23
143
+ --> $DIR/feature-gate.rs:18 :23
102
144
|
103
145
LL | () if true && let 0 = 1 => {}
104
146
| ^^^^^^^^^
@@ -107,7 +149,7 @@ LL | () if true && let 0 = 1 => {}
107
149
= help: add `#![feature(let_chains)]` to the crate attributes to enable
108
150
109
151
error[E0658]: `let` expressions in this position are unstable
110
- --> $DIR/feature-gate.rs:20 :15
152
+ --> $DIR/feature-gate.rs:22 :15
111
153
|
112
154
LL | () if let 0 = 1 && true => {}
113
155
| ^^^^^^^^^
@@ -116,7 +158,7 @@ LL | () if let 0 = 1 && true => {}
116
158
= help: add `#![feature(let_chains)]` to the crate attributes to enable
117
159
118
160
error[E0658]: `let` expressions in this position are unstable
119
- --> $DIR/feature-gate.rs:24 :16
161
+ --> $DIR/feature-gate.rs:26 :16
120
162
|
121
163
LL | () if (let 0 = 1) && true => {}
122
164
| ^^^^^^^^^
@@ -125,7 +167,7 @@ LL | () if (let 0 = 1) && true => {}
125
167
= help: add `#![feature(let_chains)]` to the crate attributes to enable
126
168
127
169
error[E0658]: `let` expressions in this position are unstable
128
- --> $DIR/feature-gate.rs:27 :24
170
+ --> $DIR/feature-gate.rs:30 :24
129
171
|
130
172
LL | () if true && (let 0 = 1) => {}
131
173
| ^^^^^^^^^
@@ -134,7 +176,7 @@ LL | () if true && (let 0 = 1) => {}
134
176
= help: add `#![feature(let_chains)]` to the crate attributes to enable
135
177
136
178
error[E0658]: `let` expressions in this position are unstable
137
- --> $DIR/feature-gate.rs:30 :16
179
+ --> $DIR/feature-gate.rs:34 :16
138
180
|
139
181
LL | () if (let 0 = 1) && (let 0 = 1) => {}
140
182
| ^^^^^^^^^
@@ -143,7 +185,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
143
185
= help: add `#![feature(let_chains)]` to the crate attributes to enable
144
186
145
187
error[E0658]: `let` expressions in this position are unstable
146
- --> $DIR/feature-gate.rs:30 :31
188
+ --> $DIR/feature-gate.rs:34 :31
147
189
|
148
190
LL | () if (let 0 = 1) && (let 0 = 1) => {}
149
191
| ^^^^^^^^^
@@ -152,7 +194,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
152
194
= help: add `#![feature(let_chains)]` to the crate attributes to enable
153
195
154
196
error[E0658]: `let` expressions in this position are unstable
155
- --> $DIR/feature-gate.rs:34 :15
197
+ --> $DIR/feature-gate.rs:40 :15
156
198
|
157
199
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
158
200
| ^^^^^^^^^
@@ -161,7 +203,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
161
203
= help: add `#![feature(let_chains)]` to the crate attributes to enable
162
204
163
205
error[E0658]: `let` expressions in this position are unstable
164
- --> $DIR/feature-gate.rs:34 :28
206
+ --> $DIR/feature-gate.rs:40 :28
165
207
|
166
208
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
167
209
| ^^^^^^^^^
@@ -170,7 +212,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
170
212
= help: add `#![feature(let_chains)]` to the crate attributes to enable
171
213
172
214
error[E0658]: `let` expressions in this position are unstable
173
- --> $DIR/feature-gate.rs:34 :42
215
+ --> $DIR/feature-gate.rs:40 :42
174
216
|
175
217
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
176
218
| ^^^^^^^^^
@@ -179,7 +221,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
179
221
= help: add `#![feature(let_chains)]` to the crate attributes to enable
180
222
181
223
error[E0658]: `let` expressions in this position are unstable
182
- --> $DIR/feature-gate.rs:34 :55
224
+ --> $DIR/feature-gate.rs:40 :55
183
225
|
184
226
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
185
227
| ^^^^^^^^^
@@ -188,7 +230,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
188
230
= help: add `#![feature(let_chains)]` to the crate attributes to enable
189
231
190
232
error[E0658]: `let` expressions in this position are unstable
191
- --> $DIR/feature-gate.rs:34 :68
233
+ --> $DIR/feature-gate.rs:40 :68
192
234
|
193
235
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
194
236
| ^^^^^^^^^
@@ -197,7 +239,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
197
239
= help: add `#![feature(let_chains)]` to the crate attributes to enable
198
240
199
241
error[E0658]: `let` expressions in this position are unstable
200
- --> $DIR/feature-gate.rs:42 :15
242
+ --> $DIR/feature-gate.rs:49 :15
201
243
|
202
244
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
203
245
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -206,7 +248,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
206
248
= help: add `#![feature(let_chains)]` to the crate attributes to enable
207
249
208
250
error[E0658]: `let` expressions in this position are unstable
209
- --> $DIR/feature-gate.rs:59 :16
251
+ --> $DIR/feature-gate.rs:66 :16
210
252
|
211
253
LL | use_expr!((let 0 = 1 && 0 == 0));
212
254
| ^^^^^^^^^
@@ -215,14 +257,14 @@ LL | use_expr!((let 0 = 1 && 0 == 0));
215
257
= help: add `#![feature(let_chains)]` to the crate attributes to enable
216
258
217
259
error[E0658]: `let` expressions in this position are unstable
218
- --> $DIR/feature-gate.rs:62 :16
260
+ --> $DIR/feature-gate.rs:69 :16
219
261
|
220
262
LL | use_expr!((let 0 = 1));
221
263
| ^^^^^^^^^
222
264
|
223
265
= note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
224
266
= help: add `#![feature(let_chains)]` to the crate attributes to enable
225
267
226
- error: aborting due to 25 previous errors
268
+ error: aborting due to 32 previous errors
227
269
228
270
For more information about this error, try `rustc --explain E0658`.
0 commit comments