@@ -214,6 +214,60 @@ error: `...X` range patterns are not supported
214214LL | if let ....3 = 0 {}
215215 | ^^^^^ help: try using the minimum value for the type: `MIN...0.3`
216216
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+
217271error: `...` range patterns are deprecated
218272 --> $DIR/recover-range-pats.rs:41:13
219273 |
@@ -316,6 +370,33 @@ error: `...` range patterns are deprecated
316370LL | if let ....3 = 0 {}
317371 | ^^^ help: use `..=` for an inclusive range
318372
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+
319400error[E0029]: only char and numeric types are allowed in range patterns
320401 --> $DIR/recover-range-pats.rs:19:12
321402 |
@@ -532,7 +613,7 @@ LL | if let ....3 = 0 {}
532613 = note: expected type `{integer}`
533614 found type `{float}`
534615
535- error: aborting due to 76 previous errors
616+ error: aborting due to 85 previous errors
536617
537618Some errors have detailed explanations: E0029, E0308.
538619For more information about an error, try `rustc --explain E0029`.
0 commit comments