aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3656.rs
blob: e0bec2fa4a69911a2b2f96d6b8237de015568c1c (plain)
1
2
3
4
5
6
7
8
9
10
enum Foo {
    Bar(isize),
}

fn main() {
    match Foo::Bar(205) {
        Foo { i } => (),
        // { dg-error "expected struct, variant or union type, found enum .Foo. .E0574." "" { target *-*-* } .-1 }
    }
}