Skip to content

Commit 6ee6111

Browse files
committed
Add rustfmt test from #117942
1 parent 6c01890 commit 6ee6111

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/tools/rustfmt/tests/target/anonymous-types.rs

+12
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,16 @@ struct Foo {
1616
e: f32,
1717
}
1818

19+
// Test for issue 117942
20+
struct Foo {
21+
_: union {
22+
#[rustfmt::skip]
23+
f: String,
24+
},
25+
#[rustfmt::skip]
26+
_: struct {
27+
g: i32,
28+
},
29+
}
30+
1931
fn main() {}

0 commit comments

Comments
 (0)