summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/issue-31561.rs
blob: 82414f0418bb21e0dc8795f8e70fa570d024a2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
enum Thing {
    Foo(u8),
    Bar,
    Baz
}

fn main() {
    let Thing::Foo(y) = Thing::Foo(1);
    //~^ ERROR refutable pattern in local binding
    //~| `Thing::Bar` and `Thing::Baz` not covered
}