|
1 |
| -error: `$x:pat2021` is followed by `|`, which is not allowed for `pat2021` fragments |
2 |
| - --> $DIR/macro-pat2021-pattern-followed-by-or.rs:3:32 |
| 1 | +error: `$x:pat` is followed by `|`, which is not allowed for `pat` fragments |
| 2 | + --> $DIR/macro-pat2021-pattern-followed-by-or.rs:4:28 |
3 | 3 | |
|
4 |
| -LL | macro_rules! foo { ($x:pat2021 | $y:pat2021) => {} } |
5 |
| - | ^ not allowed after `pat2021` fragments |
| 4 | +LL | macro_rules! foo { ($x:pat | $y:pat) => {} } |
| 5 | + | ^ not allowed after `pat` fragments |
6 | 6 | |
|
7 | 7 | = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
|
8 | 8 |
|
9 |
| -error: `$x:pat2021` is followed by `|`, which is not allowed for `pat2021` fragments |
10 |
| - --> $DIR/macro-pat2021-pattern-followed-by-or.rs:6:32 |
| 9 | +error: `$x:pat` is followed by `|`, which is not allowed for `pat` fragments |
| 10 | + --> $DIR/macro-pat2021-pattern-followed-by-or.rs:7:28 |
11 | 11 | |
|
12 |
| -LL | macro_rules! ogg { ($x:pat2021 | $y:pat_param) => {} } |
13 |
| - | ^ not allowed after `pat2021` fragments |
| 12 | +LL | macro_rules! ogg { ($x:pat | $y:pat_param) => {} } |
| 13 | + | ^ not allowed after `pat` fragments |
14 | 14 | |
|
15 | 15 | = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
|
16 | 16 |
|
17 |
| -error: `$pat:pat2021` may be followed by `|`, which is not allowed for `pat2021` fragments |
18 |
| - --> $DIR/macro-pat2021-pattern-followed-by-or.rs:8:40 |
| 17 | +error: `$pat:pat` may be followed by `|`, which is not allowed for `pat` fragments |
| 18 | + --> $DIR/macro-pat2021-pattern-followed-by-or.rs:9:35 |
19 | 19 | |
|
20 |
| -LL | ( $expr:expr , $( $( $pat:pat2021 )|+ => $expr_arm:pat2021 ),+ ) => { |
21 |
| - | ^ not allowed after `pat2021` fragments |
| 20 | +LL | ( $expr:expr , $( $( $pat:pat)|+ => $expr_arm:pat),+ ) => { |
| 21 | + | ^ not allowed after `pat` fragments |
22 | 22 | |
|
23 | 23 | = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
|
24 | 24 |
|
|
0 commit comments