]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/anonymous-types.rs
Auto merge of #85406 - VillSnow:integrate_binary_search, r=JohnTitor
[rust.git] / src / test / pretty / anonymous-types.rs
1 // Test for issue 85480
2 // Pretty print anonymous struct and union types
3
4 // pp-exact
5 // pretty-compare-only
6
7 struct Foo {
8     _: union {
9            _: struct {
10                   a: u8,
11                   b: u16,
12               },
13            c: u32,
14        },
15     d: u64,
16     e: f32,
17 }
18
19 type A =
20  struct {
21      field: u8,
22  };
23
24 fn main() { }