rust/src/test/run-pass/const-struct-offsets.rs

14 lines
148 B
Rust
Raw Normal View History

enum Foo {
IntVal(i32),
Int64Val(i64)
}
struct Bar {
i: i32,
v: Foo
}
static bar: Bar = Bar { i: 0, v: IntVal(0) };
fn main() {}