@@ -175,143 +175,127 @@ error: `let` expressions are not supported here
175
175
LL | () if (let 0 = 1) => {}
176
176
| ^^^^^^^^^
177
177
|
178
- = note: only supported directly in conditions of `if`- and `while`-expressions
179
- = note: as well as when nested within `&&` and parenthesis in those conditions
178
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
180
179
181
180
error: `let` expressions are not supported here
182
181
--> $DIR/feature-gate.rs:14:18
183
182
|
184
183
LL | () if (((let 0 = 1))) => {}
185
184
| ^^^^^^^^^
186
185
|
187
- = note: only supported directly in conditions of `if`- and `while`-expressions
188
- = note: as well as when nested within `&&` and parenthesis in those conditions
186
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
189
187
190
188
error: `let` expressions are not supported here
191
189
--> $DIR/feature-gate.rs:18:23
192
190
|
193
191
LL | () if true && let 0 = 1 => {}
194
192
| ^^^^^^^^^
195
193
|
196
- = note: only supported directly in conditions of `if`- and `while`-expressions
197
- = note: as well as when nested within `&&` and parenthesis in those conditions
194
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
198
195
199
196
error: `let` expressions are not supported here
200
197
--> $DIR/feature-gate.rs:22:15
201
198
|
202
199
LL | () if let 0 = 1 && true => {}
203
200
| ^^^^^^^^^
204
201
|
205
- = note: only supported directly in conditions of `if`- and `while`-expressions
206
- = note: as well as when nested within `&&` and parenthesis in those conditions
202
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
207
203
208
204
error: `let` expressions are not supported here
209
205
--> $DIR/feature-gate.rs:26:16
210
206
|
211
207
LL | () if (let 0 = 1) && true => {}
212
208
| ^^^^^^^^^
213
209
|
214
- = note: only supported directly in conditions of `if`- and `while`-expressions
215
- = note: as well as when nested within `&&` and parenthesis in those conditions
210
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
216
211
217
212
error: `let` expressions are not supported here
218
213
--> $DIR/feature-gate.rs:30:24
219
214
|
220
215
LL | () if true && (let 0 = 1) => {}
221
216
| ^^^^^^^^^
222
217
|
223
- = note: only supported directly in conditions of `if`- and `while`-expressions
224
- = note: as well as when nested within `&&` and parenthesis in those conditions
218
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
225
219
226
220
error: `let` expressions are not supported here
227
221
--> $DIR/feature-gate.rs:34:16
228
222
|
229
223
LL | () if (let 0 = 1) && (let 0 = 1) => {}
230
224
| ^^^^^^^^^
231
225
|
232
- = note: only supported directly in conditions of `if`- and `while`-expressions
233
- = note: as well as when nested within `&&` and parenthesis in those conditions
226
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
234
227
235
228
error: `let` expressions are not supported here
236
229
--> $DIR/feature-gate.rs:34:31
237
230
|
238
231
LL | () if (let 0 = 1) && (let 0 = 1) => {}
239
232
| ^^^^^^^^^
240
233
|
241
- = note: only supported directly in conditions of `if`- and `while`-expressions
242
- = note: as well as when nested within `&&` and parenthesis in those conditions
234
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
243
235
244
236
error: `let` expressions are not supported here
245
237
--> $DIR/feature-gate.rs:40:15
246
238
|
247
239
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
248
240
| ^^^^^^^^^
249
241
|
250
- = note: only supported directly in conditions of `if`- and `while`-expressions
251
- = note: as well as when nested within `&&` and parenthesis in those conditions
242
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
252
243
253
244
error: `let` expressions are not supported here
254
245
--> $DIR/feature-gate.rs:40:28
255
246
|
256
247
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
257
248
| ^^^^^^^^^
258
249
|
259
- = note: only supported directly in conditions of `if`- and `while`-expressions
260
- = note: as well as when nested within `&&` and parenthesis in those conditions
250
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
261
251
262
252
error: `let` expressions are not supported here
263
253
--> $DIR/feature-gate.rs:40:42
264
254
|
265
255
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
266
256
| ^^^^^^^^^
267
257
|
268
- = note: only supported directly in conditions of `if`- and `while`-expressions
269
- = note: as well as when nested within `&&` and parenthesis in those conditions
258
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
270
259
271
260
error: `let` expressions are not supported here
272
261
--> $DIR/feature-gate.rs:40:55
273
262
|
274
263
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
275
264
| ^^^^^^^^^
276
265
|
277
- = note: only supported directly in conditions of `if`- and `while`-expressions
278
- = note: as well as when nested within `&&` and parenthesis in those conditions
266
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
279
267
280
268
error: `let` expressions are not supported here
281
269
--> $DIR/feature-gate.rs:40:68
282
270
|
283
271
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
284
272
| ^^^^^^^^^
285
273
|
286
- = note: only supported directly in conditions of `if`- and `while`-expressions
287
- = note: as well as when nested within `&&` and parenthesis in those conditions
274
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
288
275
289
276
error: `let` expressions are not supported here
290
277
--> $DIR/feature-gate.rs:52:15
291
278
|
292
279
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
293
280
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
294
281
|
295
- = note: only supported directly in conditions of `if`- and `while`-expressions
296
- = note: as well as when nested within `&&` and parenthesis in those conditions
282
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
297
283
298
284
error: `let` expressions are not supported here
299
285
--> $DIR/feature-gate.rs:68:16
300
286
|
301
287
LL | use_expr!((let 0 = 1 && 0 == 0));
302
288
| ^^^^^^^^^
303
289
|
304
- = note: only supported directly in conditions of `if`- and `while`-expressions
305
- = note: as well as when nested within `&&` and parenthesis in those conditions
290
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
306
291
307
292
error: `let` expressions are not supported here
308
293
--> $DIR/feature-gate.rs:71:16
309
294
|
310
295
LL | use_expr!((let 0 = 1));
311
296
| ^^^^^^^^^
312
297
|
313
- = note: only supported directly in conditions of `if`- and `while`-expressions
314
- = note: as well as when nested within `&&` and parenthesis in those conditions
298
+ = note: only supported directly without parentheses in conditions of `if`- and `while`-expressions, as well as in `let` chains within parentheses
315
299
316
300
error: aborting due to 35 previous errors
317
301
0 commit comments