2020-01-10 23:49:43 -06:00
|
|
|
error: range-to patterns with `...` are not allowed
|
2022-09-24 10:22:04 -05:00
|
|
|
--> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:15:9
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | ...X => {}
|
|
|
|
| ^^^ help: use `..=` instead
|
|
|
|
|
|
|
|
error: range-to patterns with `...` are not allowed
|
2022-09-24 10:22:04 -05:00
|
|
|
--> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:16:9
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | ...0 => {}
|
|
|
|
| ^^^ help: use `..=` instead
|
|
|
|
|
|
|
|
error: range-to patterns with `...` are not allowed
|
2022-09-24 10:22:04 -05:00
|
|
|
--> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:17:9
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | ...'a' => {}
|
|
|
|
| ^^^ help: use `..=` instead
|
|
|
|
|
|
|
|
error: range-to patterns with `...` are not allowed
|
2022-09-24 10:22:04 -05:00
|
|
|
--> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:18:9
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | ...0.0f32 => {}
|
|
|
|
| ^^^ help: use `..=` instead
|
|
|
|
|
|
|
|
error: range-to patterns with `...` are not allowed
|
2022-09-24 10:22:04 -05:00
|
|
|
--> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:25:17
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
|
LL | let ...$e;
|
|
|
|
| ^^^ help: use `..=` instead
|
|
|
|
...
|
|
|
|
LL | mac!(0);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------- in this macro invocation
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-01-10 23:49:43 -06:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|