Skip to content

Commit d59b1f1

Browse files
committed
Add test for pretty printing anonymous types
1 parent 5b4bc05 commit d59b1f1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/test/pretty/anonymous-types.rs

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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() { }

0 commit comments

Comments
 (0)