summaryrefslogtreecommitdiffstats
path: root/tests/ui/issue-94866.rs
blob: c42034879369232c258265e28c7ceee85c7a8d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro_rules! m {
    () => {
        {}
    };
}

enum Enum { A, B }

fn main() {
    match Enum::A {
    //~^ ERROR non-exhaustive patterns
    Enum::A => m!()
    }
}