about summary refs log tree commit diff
path: root/tests/ui/or-patterns/or-patterns-syntactic-pass-2021.rs
blob: 040f03c08b4fbc5273755efe5e3b92e96b8ef3c3 (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() {}