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

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