]> git.lizzy.rs Git - rust.git/blob - tests/ui/half-open-range-patterns/half-open-range-pats-inclusive-dotdotdot-bad-syntax.stderr
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / half-open-range-patterns / half-open-range-pats-inclusive-dotdotdot-bad-syntax.stderr
1 error: range-to patterns with `...` are not allowed
2   --> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:15:9
3    |
4 LL |         ...X => {}
5    |         ^^^ help: use `..=` instead
6
7 error: range-to patterns with `...` are not allowed
8   --> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:16:9
9    |
10 LL |         ...0 => {}
11    |         ^^^ help: use `..=` instead
12
13 error: range-to patterns with `...` are not allowed
14   --> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:17:9
15    |
16 LL |         ...'a' => {}
17    |         ^^^ help: use `..=` instead
18
19 error: range-to patterns with `...` are not allowed
20   --> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:18:9
21    |
22 LL |         ...0.0f32 => {}
23    |         ^^^ help: use `..=` instead
24
25 error: range-to patterns with `...` are not allowed
26   --> $DIR/half-open-range-pats-inclusive-dotdotdot-bad-syntax.rs:25:17
27    |
28 LL |             let ...$e;
29    |                 ^^^ help: use `..=` instead
30 ...
31 LL |     mac!(0);
32    |     ------- in this macro invocation
33    |
34    = note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
35
36 error: aborting due to 5 previous errors
37