summaryrefslogtreecommitdiffstats
path: root/tests/ui/or-patterns/or-patterns-syntactic-pass-2021.rs
blob: c0d148d92042f9b95a89e7dde74d82daf45d64a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Tests that :pat in macros in edition 2021 allows top-level or-patterns.

// run-pass
// edition:2021

macro_rules! accept_pat {
    ($p:pat) => {};
}

accept_pat!(p | q);

fn main() {}