]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-struct-offsets.rs
Rollup merge of #106873 - BoxyUwU:ty_const_formatting, r=compiler-errors
[rust.git] / tests / 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() {}