@@ -214,6 +214,60 @@ error: `...X` range patterns are not supported
214
214
LL | if let ....3 = 0 {}
215
215
| ^^^^^ help: try using the minimum value for the type: `MIN...0.3`
216
216
217
+ error: `..X` range patterns are not supported
218
+ --> $DIR/recover-range-pats.rs:139:17
219
+ |
220
+ LL | let ..$e;
221
+ | ^^ help: try using the minimum value for the type: `MIN..0`
222
+ ...
223
+ LL | mac!(0);
224
+ | -------- in this macro invocation
225
+
226
+ error: `...X` range patterns are not supported
227
+ --> $DIR/recover-range-pats.rs:140:17
228
+ |
229
+ LL | let ...$e;
230
+ | ^^^ help: try using the minimum value for the type: `MIN...0`
231
+ ...
232
+ LL | mac!(0);
233
+ | -------- in this macro invocation
234
+
235
+ error: `..=X` range patterns are not supported
236
+ --> $DIR/recover-range-pats.rs:142:17
237
+ |
238
+ LL | let ..=$e;
239
+ | ^^^ help: try using the minimum value for the type: `MIN..=0`
240
+ ...
241
+ LL | mac!(0);
242
+ | -------- in this macro invocation
243
+
244
+ error: `X..` range patterns are not supported
245
+ --> $DIR/recover-range-pats.rs:143:19
246
+ |
247
+ LL | let $e..;
248
+ | ^^ help: try using the maximum value for the type: `0..MAX`
249
+ ...
250
+ LL | mac!(0);
251
+ | -------- in this macro invocation
252
+
253
+ error: `X...` range patterns are not supported
254
+ --> $DIR/recover-range-pats.rs:144:19
255
+ |
256
+ LL | let $e...;
257
+ | ^^^ help: try using the maximum value for the type: `0...MAX`
258
+ ...
259
+ LL | mac!(0);
260
+ | -------- in this macro invocation
261
+
262
+ error: `X..=` range patterns are not supported
263
+ --> $DIR/recover-range-pats.rs:146:19
264
+ |
265
+ LL | let $e..=;
266
+ | ^^^ help: try using the maximum value for the type: `0..=MAX`
267
+ ...
268
+ LL | mac!(0);
269
+ | -------- in this macro invocation
270
+
217
271
error: `...` range patterns are deprecated
218
272
--> $DIR/recover-range-pats.rs:41:13
219
273
|
@@ -316,6 +370,33 @@ error: `...` range patterns are deprecated
316
370
LL | if let ....3 = 0 {}
317
371
| ^^^ help: use `..=` for an inclusive range
318
372
373
+ error: `...` range patterns are deprecated
374
+ --> $DIR/recover-range-pats.rs:129:20
375
+ |
376
+ LL | let $e1...$e2;
377
+ | ^^^ help: use `..=` for an inclusive range
378
+ ...
379
+ LL | mac2!(0, 1);
380
+ | ------------ in this macro invocation
381
+
382
+ error: `...` range patterns are deprecated
383
+ --> $DIR/recover-range-pats.rs:140:17
384
+ |
385
+ LL | let ...$e;
386
+ | ^^^ help: use `..=` for an inclusive range
387
+ ...
388
+ LL | mac!(0);
389
+ | -------- in this macro invocation
390
+
391
+ error: `...` range patterns are deprecated
392
+ --> $DIR/recover-range-pats.rs:144:19
393
+ |
394
+ LL | let $e...;
395
+ | ^^^ help: use `..=` for an inclusive range
396
+ ...
397
+ LL | mac!(0);
398
+ | -------- in this macro invocation
399
+
319
400
error[E0029]: only char and numeric types are allowed in range patterns
320
401
--> $DIR/recover-range-pats.rs:19:12
321
402
|
@@ -532,7 +613,7 @@ LL | if let ....3 = 0 {}
532
613
= note: expected type `{integer}`
533
614
found type `{float}`
534
615
535
- error: aborting due to 76 previous errors
616
+ error: aborting due to 85 previous errors
536
617
537
618
Some errors have detailed explanations: E0029, E0308.
538
619
For more information about an error, try `rustc --explain E0029`.
0 commit comments