]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/const-struct-offsets.rs
librustc: Bump the offset when translating const structs. Closes #6352.
[rust.git] / src / test / run-pass / const-struct-offsets.rs
1 enum Foo {
2     IntVal(i32),
3     Int64Val(i64)
4 }
5
6 struct Bar {
7     i: i32,
8     v: Foo
9 }
10
11 static bar: Bar = Bar { i: 0, v: IntVal(0) };
12
13 fn main() {}
14