Add test for pretty printing anonymous types
This commit is contained in:
parent
5b4bc05fa5
commit
d59b1f1ef4
1 changed files with 24 additions and 0 deletions
24
src/test/pretty/anonymous-types.rs
Normal file
24
src/test/pretty/anonymous-types.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Test for issue 85480
|
||||
// Pretty print anonymous struct and union types
|
||||
|
||||
// pp-exact
|
||||
// pretty-compare-only
|
||||
|
||||
struct Foo {
|
||||
_: union {
|
||||
_: struct {
|
||||
a: u8,
|
||||
b: u16,
|
||||
},
|
||||
c: u32,
|
||||
},
|
||||
d: u64,
|
||||
e: f32,
|
||||
}
|
||||
|
||||
type A =
|
||||
struct {
|
||||
field: u8,
|
||||
};
|
||||
|
||||
fn main() { }
|
Loading…
Add table
Add a link
Reference in a new issue