]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/const-struct-offsets.rs
Merge branch 'debian/sid' into debian/experimental
[rustc.git] / src / test / ui / consts / const-struct-offsets.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4 #![allow(non_upper_case_globals)]
5
6 enum Foo {
7 IntVal(i32),
8 Int64Val(i64)
9 }
10
11 struct Bar {
12 i: i32,
13 v: Foo
14 }
15
16 static bar: Bar = Bar { i: 0, v: Foo::IntVal(0) };
17
18 pub fn main() {}