]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/or-patterns-syntactic-pass-2021.rs
Merge remote-tracking branch 'upstream/master' into impl-16351-nightly
[rust.git] / src / test / ui / or-patterns / or-patterns-syntactic-pass-2021.rs
1 // Tests that :pat in macros in edition 2021 allows top-level or-patterns.
2
3 // run-pass
4 // ignore-test
5 // edition:2021
6 // FIXME(mark-i-m): unignore when 2021 machinery is in place.
7
8 macro_rules! accept_pat {
9     ($p:pat) => {};
10 }
11
12 accept_pat!(p | q);
13
14 fn main() {}