Skip to content

Commit

Permalink
Add test for pretty printing anonymous types
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed May 24, 2021
1 parent 5b4bc05 commit d59b1f1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/test/pretty/anonymous-types.rs
Original file line number Diff line number Diff line change
@@ -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() { }

0 comments on commit d59b1f1

Please sign in to comment.