aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/torture/enum1.rs
blob: 7cea48f29e22177c4c2feb78498b032a90062fde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
enum Foo {
    A,
    B,
    C(char),
    D { x: i64, y: i64 },
}

fn main() {
    let _a = Foo::A;
    let _b = Foo::B;
    let _c = Foo::C('x');
    let _d = Foo::D { x: 20, y: 80 };
}