1 // Test that :pat doesn't accept top-level or-patterns in edition 2018.
5 #![feature(or_patterns)]
9 // Test the `pat` macro fragment parser:
10 macro_rules! accept_pat {
14 accept_pat!(p | q); //~ ERROR no rules expected the token `|`
15 accept_pat!(|p| q); //~ ERROR no rules expected the token `|`