summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/issue-40221.rs
blob: e1f7e975b80e4288f4a370af12105119296d5e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
enum P {
    C(PC),
}

enum PC {
    Q,
    QA,
}

fn test(proto: P) {
    match proto { //~ ERROR non-exhaustive patterns
        P::C(PC::Q) => (),
    }
}

fn main() {}