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

struct Baz;

fn main() {
    Foo::Bar.a;
    // { dg-error "no field .a. on type .Foo. .E0609." "" { target *-*-* } .-1 }
    Baz.a;
    // { dg-error "no field .a. on type .Baz. .E0609." "" { target *-*-* } .-1 }
}