2020-12-28 16:57:13 -06:00
|
|
|
// run-pass
|
2021-04-27 21:15:59 -05:00
|
|
|
// edition:2021
|
2020-12-28 16:57:13 -06:00
|
|
|
|
|
|
|
macro_rules! foo {
|
2021-04-14 20:34:51 -05:00
|
|
|
(a $x:pat_param) => {};
|
2021-04-27 21:15:59 -05:00
|
|
|
(b $x:pat) => {};
|
2020-12-28 16:57:13 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo!(a None);
|
|
|
|
foo!(b 1 | 2);
|
|
|
|
}
|