1
1
error: no rules expected the token `let`
2
- --> $DIR/feature-gate.rs:81 :15
2
+ --> $DIR/feature-gate.rs:80 :15
3
3
|
4
4
LL | macro_rules! use_expr {
5
5
| --------------------- when calling this macro
@@ -17,7 +17,7 @@ LL | () if let 0 = 1 => {}
17
17
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
18
18
19
19
error[E0658]: `if let` guard is not implemented
20
- --> $DIR/feature-gate.rs:77 :12
20
+ --> $DIR/feature-gate.rs:76 :12
21
21
|
22
22
LL | () if let 0 = 1 => {}
23
23
| ^^^^^^^^^^^^
@@ -26,7 +26,7 @@ LL | () if let 0 = 1 => {}
26
26
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
27
27
28
28
error[E0658]: `let` expressions in this position are experimental
29
- --> $DIR/feature-gate.rs:11 :16
29
+ --> $DIR/feature-gate.rs:10 :16
30
30
|
31
31
LL | () if (let 0 = 1) => {}
32
32
| ^^^^^^^^^
@@ -35,7 +35,7 @@ LL | () if (let 0 = 1) => {}
35
35
= help: add `#![feature(let_chains)]` to the crate attributes to enable
36
36
37
37
error[E0658]: `let` expressions in this position are experimental
38
- --> $DIR/feature-gate.rs:15 :18
38
+ --> $DIR/feature-gate.rs:14 :18
39
39
|
40
40
LL | () if (((let 0 = 1))) => {}
41
41
| ^^^^^^^^^
@@ -44,7 +44,7 @@ LL | () if (((let 0 = 1))) => {}
44
44
= help: add `#![feature(let_chains)]` to the crate attributes to enable
45
45
46
46
error[E0658]: `let` expressions in this position are experimental
47
- --> $DIR/feature-gate.rs:19 :23
47
+ --> $DIR/feature-gate.rs:18 :23
48
48
|
49
49
LL | () if true && let 0 = 1 => {}
50
50
| ^^^^^^^^^
@@ -53,7 +53,7 @@ LL | () if true && let 0 = 1 => {}
53
53
= help: add `#![feature(let_chains)]` to the crate attributes to enable
54
54
55
55
error[E0658]: `let` expressions in this position are experimental
56
- --> $DIR/feature-gate.rs:23 :15
56
+ --> $DIR/feature-gate.rs:22 :15
57
57
|
58
58
LL | () if let 0 = 1 && true => {}
59
59
| ^^^^^^^^^
@@ -62,7 +62,7 @@ LL | () if let 0 = 1 && true => {}
62
62
= help: add `#![feature(let_chains)]` to the crate attributes to enable
63
63
64
64
error[E0658]: `let` expressions in this position are experimental
65
- --> $DIR/feature-gate.rs:27 :16
65
+ --> $DIR/feature-gate.rs:26 :16
66
66
|
67
67
LL | () if (let 0 = 1) && true => {}
68
68
| ^^^^^^^^^
@@ -71,7 +71,7 @@ LL | () if (let 0 = 1) && true => {}
71
71
= help: add `#![feature(let_chains)]` to the crate attributes to enable
72
72
73
73
error[E0658]: `let` expressions in this position are experimental
74
- --> $DIR/feature-gate.rs:31 :24
74
+ --> $DIR/feature-gate.rs:30 :24
75
75
|
76
76
LL | () if true && (let 0 = 1) => {}
77
77
| ^^^^^^^^^
@@ -80,7 +80,7 @@ LL | () if true && (let 0 = 1) => {}
80
80
= help: add `#![feature(let_chains)]` to the crate attributes to enable
81
81
82
82
error[E0658]: `let` expressions in this position are experimental
83
- --> $DIR/feature-gate.rs:35 :16
83
+ --> $DIR/feature-gate.rs:34 :16
84
84
|
85
85
LL | () if (let 0 = 1) && (let 0 = 1) => {}
86
86
| ^^^^^^^^^
@@ -89,7 +89,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
89
89
= help: add `#![feature(let_chains)]` to the crate attributes to enable
90
90
91
91
error[E0658]: `let` expressions in this position are experimental
92
- --> $DIR/feature-gate.rs:35 :31
92
+ --> $DIR/feature-gate.rs:34 :31
93
93
|
94
94
LL | () if (let 0 = 1) && (let 0 = 1) => {}
95
95
| ^^^^^^^^^
@@ -98,7 +98,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
98
98
= help: add `#![feature(let_chains)]` to the crate attributes to enable
99
99
100
100
error[E0658]: `let` expressions in this position are experimental
101
- --> $DIR/feature-gate.rs:41 :15
101
+ --> $DIR/feature-gate.rs:40 :15
102
102
|
103
103
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
104
104
| ^^^^^^^^^
@@ -107,7 +107,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
107
107
= help: add `#![feature(let_chains)]` to the crate attributes to enable
108
108
109
109
error[E0658]: `let` expressions in this position are experimental
110
- --> $DIR/feature-gate.rs:41 :28
110
+ --> $DIR/feature-gate.rs:40 :28
111
111
|
112
112
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
113
113
| ^^^^^^^^^
@@ -116,7 +116,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
116
116
= help: add `#![feature(let_chains)]` to the crate attributes to enable
117
117
118
118
error[E0658]: `let` expressions in this position are experimental
119
- --> $DIR/feature-gate.rs:41 :42
119
+ --> $DIR/feature-gate.rs:40 :42
120
120
|
121
121
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
122
122
| ^^^^^^^^^
@@ -125,7 +125,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
125
125
= help: add `#![feature(let_chains)]` to the crate attributes to enable
126
126
127
127
error[E0658]: `let` expressions in this position are experimental
128
- --> $DIR/feature-gate.rs:41 :55
128
+ --> $DIR/feature-gate.rs:40 :55
129
129
|
130
130
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
131
131
| ^^^^^^^^^
@@ -134,7 +134,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
134
134
= help: add `#![feature(let_chains)]` to the crate attributes to enable
135
135
136
136
error[E0658]: `let` expressions in this position are experimental
137
- --> $DIR/feature-gate.rs:41 :68
137
+ --> $DIR/feature-gate.rs:40 :68
138
138
|
139
139
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
140
140
| ^^^^^^^^^
@@ -143,7 +143,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
143
143
= help: add `#![feature(let_chains)]` to the crate attributes to enable
144
144
145
145
error[E0658]: `let` expressions in this position are experimental
146
- --> $DIR/feature-gate.rs:53 :15
146
+ --> $DIR/feature-gate.rs:52 :15
147
147
|
148
148
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
149
149
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -152,7 +152,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
152
152
= help: add `#![feature(let_chains)]` to the crate attributes to enable
153
153
154
154
error[E0658]: `let` expressions in this position are experimental
155
- --> $DIR/feature-gate.rs:69 :16
155
+ --> $DIR/feature-gate.rs:68 :16
156
156
|
157
157
LL | use_expr!((let 0 = 1 && 0 == 0));
158
158
| ^^^^^^^^^
@@ -161,7 +161,7 @@ LL | use_expr!((let 0 = 1 && 0 == 0));
161
161
= help: add `#![feature(let_chains)]` to the crate attributes to enable
162
162
163
163
error[E0658]: `let` expressions in this position are experimental
164
- --> $DIR/feature-gate.rs:72 :16
164
+ --> $DIR/feature-gate.rs:71 :16
165
165
|
166
166
LL | use_expr!((let 0 = 1));
167
167
| ^^^^^^^^^
@@ -170,7 +170,7 @@ LL | use_expr!((let 0 = 1));
170
170
= help: add `#![feature(let_chains)]` to the crate attributes to enable
171
171
172
172
error: `let` expressions are not supported here
173
- --> $DIR/feature-gate.rs:11 :16
173
+ --> $DIR/feature-gate.rs:10 :16
174
174
|
175
175
LL | () if (let 0 = 1) => {}
176
176
| ^^^^^^^^^
@@ -179,7 +179,7 @@ LL | () if (let 0 = 1) => {}
179
179
= note: as well as when nested within `&&` and parenthesis in those conditions
180
180
181
181
error: `let` expressions are not supported here
182
- --> $DIR/feature-gate.rs:15 :18
182
+ --> $DIR/feature-gate.rs:14 :18
183
183
|
184
184
LL | () if (((let 0 = 1))) => {}
185
185
| ^^^^^^^^^
@@ -188,7 +188,7 @@ LL | () if (((let 0 = 1))) => {}
188
188
= note: as well as when nested within `&&` and parenthesis in those conditions
189
189
190
190
error: `let` expressions are not supported here
191
- --> $DIR/feature-gate.rs:19 :23
191
+ --> $DIR/feature-gate.rs:18 :23
192
192
|
193
193
LL | () if true && let 0 = 1 => {}
194
194
| ^^^^^^^^^
@@ -197,7 +197,7 @@ LL | () if true && let 0 = 1 => {}
197
197
= note: as well as when nested within `&&` and parenthesis in those conditions
198
198
199
199
error: `let` expressions are not supported here
200
- --> $DIR/feature-gate.rs:23 :15
200
+ --> $DIR/feature-gate.rs:22 :15
201
201
|
202
202
LL | () if let 0 = 1 && true => {}
203
203
| ^^^^^^^^^
@@ -206,7 +206,7 @@ LL | () if let 0 = 1 && true => {}
206
206
= note: as well as when nested within `&&` and parenthesis in those conditions
207
207
208
208
error: `let` expressions are not supported here
209
- --> $DIR/feature-gate.rs:27 :16
209
+ --> $DIR/feature-gate.rs:26 :16
210
210
|
211
211
LL | () if (let 0 = 1) && true => {}
212
212
| ^^^^^^^^^
@@ -215,7 +215,7 @@ LL | () if (let 0 = 1) && true => {}
215
215
= note: as well as when nested within `&&` and parenthesis in those conditions
216
216
217
217
error: `let` expressions are not supported here
218
- --> $DIR/feature-gate.rs:31 :24
218
+ --> $DIR/feature-gate.rs:30 :24
219
219
|
220
220
LL | () if true && (let 0 = 1) => {}
221
221
| ^^^^^^^^^
@@ -224,7 +224,7 @@ LL | () if true && (let 0 = 1) => {}
224
224
= note: as well as when nested within `&&` and parenthesis in those conditions
225
225
226
226
error: `let` expressions are not supported here
227
- --> $DIR/feature-gate.rs:35 :16
227
+ --> $DIR/feature-gate.rs:34 :16
228
228
|
229
229
LL | () if (let 0 = 1) && (let 0 = 1) => {}
230
230
| ^^^^^^^^^
@@ -233,7 +233,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
233
233
= note: as well as when nested within `&&` and parenthesis in those conditions
234
234
235
235
error: `let` expressions are not supported here
236
- --> $DIR/feature-gate.rs:35 :31
236
+ --> $DIR/feature-gate.rs:34 :31
237
237
|
238
238
LL | () if (let 0 = 1) && (let 0 = 1) => {}
239
239
| ^^^^^^^^^
@@ -242,7 +242,7 @@ LL | () if (let 0 = 1) && (let 0 = 1) => {}
242
242
= note: as well as when nested within `&&` and parenthesis in those conditions
243
243
244
244
error: `let` expressions are not supported here
245
- --> $DIR/feature-gate.rs:41 :15
245
+ --> $DIR/feature-gate.rs:40 :15
246
246
|
247
247
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
248
248
| ^^^^^^^^^
@@ -251,7 +251,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
251
251
= note: as well as when nested within `&&` and parenthesis in those conditions
252
252
253
253
error: `let` expressions are not supported here
254
- --> $DIR/feature-gate.rs:41 :28
254
+ --> $DIR/feature-gate.rs:40 :28
255
255
|
256
256
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
257
257
| ^^^^^^^^^
@@ -260,7 +260,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
260
260
= note: as well as when nested within `&&` and parenthesis in those conditions
261
261
262
262
error: `let` expressions are not supported here
263
- --> $DIR/feature-gate.rs:41 :42
263
+ --> $DIR/feature-gate.rs:40 :42
264
264
|
265
265
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
266
266
| ^^^^^^^^^
@@ -269,7 +269,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
269
269
= note: as well as when nested within `&&` and parenthesis in those conditions
270
270
271
271
error: `let` expressions are not supported here
272
- --> $DIR/feature-gate.rs:41 :55
272
+ --> $DIR/feature-gate.rs:40 :55
273
273
|
274
274
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
275
275
| ^^^^^^^^^
@@ -278,7 +278,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
278
278
= note: as well as when nested within `&&` and parenthesis in those conditions
279
279
280
280
error: `let` expressions are not supported here
281
- --> $DIR/feature-gate.rs:41 :68
281
+ --> $DIR/feature-gate.rs:40 :68
282
282
|
283
283
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
284
284
| ^^^^^^^^^
@@ -287,7 +287,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
287
287
= note: as well as when nested within `&&` and parenthesis in those conditions
288
288
289
289
error: `let` expressions are not supported here
290
- --> $DIR/feature-gate.rs:53 :15
290
+ --> $DIR/feature-gate.rs:52 :15
291
291
|
292
292
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
293
293
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -296,7 +296,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
296
296
= note: as well as when nested within `&&` and parenthesis in those conditions
297
297
298
298
error: `let` expressions are not supported here
299
- --> $DIR/feature-gate.rs:69 :16
299
+ --> $DIR/feature-gate.rs:68 :16
300
300
|
301
301
LL | use_expr!((let 0 = 1 && 0 == 0));
302
302
| ^^^^^^^^^
@@ -305,14 +305,14 @@ LL | use_expr!((let 0 = 1 && 0 == 0));
305
305
= note: as well as when nested within `&&` and parenthesis in those conditions
306
306
307
307
error: `let` expressions are not supported here
308
- --> $DIR/feature-gate.rs:72 :16
308
+ --> $DIR/feature-gate.rs:71 :16
309
309
|
310
310
LL | use_expr!((let 0 = 1));
311
311
| ^^^^^^^^^
312
312
|
313
313
= note: only supported directly in conditions of `if`- and `while`-expressions
314
314
= note: as well as when nested within `&&` and parenthesis in those conditions
315
315
316
- error: aborting due to 36 previous errors
316
+ error: aborting due to 35 previous errors
317
317
318
318
For more information about this error, try `rustc --explain E0658`.
0 commit comments