rust/src/test/ui/macros/macro-pat2021-pattern-followed-by-or.stderr

27 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-04-14 18:51:54 +08:00
error: `$x:pat2021` is followed by `|`, which is not allowed for `pat2021` fragments
2021-04-14 22:16:56 +08:00
--> $DIR/macro-pat2021-pattern-followed-by-or.rs:3:32
2021-04-14 18:51:54 +08:00
|
LL | macro_rules! foo { ($x:pat2021 | $y:pat2021) => {} }
| ^ not allowed after `pat2021` fragments
|
= note: allowed there are: `=>`, `,`, `=`, `if` or `in`
error: `$x:pat2021` is followed by `|`, which is not allowed for `pat2021` fragments
2021-04-14 22:16:56 +08:00
--> $DIR/macro-pat2021-pattern-followed-by-or.rs:6:32
2021-04-14 18:51:54 +08:00
|
2021-04-15 14:27:29 -05:00
LL | macro_rules! ogg { ($x:pat2021 | $y:pat_param) => {} }
2021-04-14 18:51:54 +08:00
| ^ not allowed after `pat2021` fragments
|
= note: allowed there are: `=>`, `,`, `=`, `if` or `in`
error: `$pat:pat2021` may be followed by `|`, which is not allowed for `pat2021` fragments
2021-04-14 22:16:56 +08:00
--> $DIR/macro-pat2021-pattern-followed-by-or.rs:8:40
2021-04-14 18:51:54 +08:00
|
LL | ( $expr:expr , $( $( $pat:pat2021 )|+ => $expr_arm:pat2021 ),+ ) => {
| ^ not allowed after `pat2021` fragments
|
= note: allowed there are: `=>`, `,`, `=`, `if` or `in`
error: aborting due to 3 previous errors