about summary refs log tree commit diff
path: root/src/test/run-pass/const-struct-offsets.rs
blob: 2bb0516cad449ce63aedaadc606bd33e813eadfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
enum Foo {
    IntVal(i32),
    Int64Val(i64)
}

struct Bar {
    i: i32,
    v: Foo
}

static bar: Bar = Bar { i: 0, v: IntVal(0) };

pub fn main() {}