]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/edition-macro-pats.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / macros / edition-macro-pats.rs
1 // run-pass
2 // edition:2021
3
4 macro_rules! foo {
5     (a $x:pat_param) => {};
6     (b $x:pat) => {};
7 }
8
9 fn main() {
10     foo!(a None);
11     foo!(b 1 | 2);
12 }