summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/issue-56379.rs
blob: 9bccccca9c2b63609d9071ad6928386c5df4d73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
enum Foo {
    A(bool),
    B(bool),
    C(bool),
}

fn main() {
    match Foo::A(true) {
        //~^ ERROR non-exhaustive patterns: `A(false)`, `B(false)` and `C(false)` not covered
        Foo::A(true) => {}
        Foo::B(true) => {}
        Foo::C(true) => {}
    }
}