1 error: `$x:pat` is followed by `|`, which is not allowed for `pat` fragments
2 --> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:3:28
4 LL | macro_rules! foo { ($x:pat | $y:pat) => {} }
5 | ------ ^ not allowed after `pat` fragments
7 | help: try a `pat_param` fragment specifier instead: `$x:pat_param`
9 = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
11 error: `$x:pat` is followed by `|`, which is not allowed for `pat` fragments
12 --> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:4:32
14 LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} }
15 | ------ ^ not allowed after `pat` fragments
17 | help: try a `pat_param` fragment specifier instead: `$x:pat_param`
19 = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
21 error: `$pat:pat` may be followed by `|`, which is not allowed for `pat` fragments
22 --> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:7:36
24 LL | ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
25 | -------- ^ not allowed after `pat` fragments
27 | help: try a `pat_param` fragment specifier instead: `$pat:pat_param`
29 = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
31 error: aborting due to 3 previous errors