In Edition 2021, the following should error:
macro_rules! foo {
($x:pat | $y:pat) => { }
}
fn main() { }
for the same reason that the following already errors:
macro_rules! foo {
($x:expr | $y:expr) => { }
}
fn main() { }
cc @rust-lang/project-edition-2021