]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-pat-pattern-followed-by-or-in-2021.stderr
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / ui / macros / macro-pat-pattern-followed-by-or-in-2021.stderr
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
3    |
4 LL | macro_rules! foo { ($x:pat | $y:pat) => {} }
5    |                            ^ not allowed after `pat` fragments
6    |
7    = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
8
9 error: `$x:pat` is followed by `|`, which is not allowed for `pat` fragments
10   --> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:4:32
11    |
12 LL | macro_rules! bar { ($($x:pat)+ | $($y:pat)+) => {} }
13    |                                ^ not allowed after `pat` fragments
14    |
15    = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
16
17 error: `$pat:pat` may be followed by `|`, which is not allowed for `pat` fragments
18   --> $DIR/macro-pat-pattern-followed-by-or-in-2021.rs:7:36
19    |
20 LL |     ( $expr:expr , $( $( $pat:pat )|+ => $expr_arm:expr ),+ ) => {
21    |                                    ^ not allowed after `pat` fragments
22    |
23    = note: allowed there are: `=>`, `,`, `=`, `if` or `in`
24
25 error: aborting due to 3 previous errors
26