rust/tests/ui/macros/edition-macro-pats.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
152 B
Rust
Raw Normal View History

// run-pass
2021-04-27 21:15:59 -05:00
// edition:2021
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) => {};
}
fn main() {
foo!(a None);
foo!(b 1 | 2);
}