Add rustfmt test from #117942

This commit is contained in:
Frank King 2024-01-06 15:52:22 +08:00
parent 88c5838c06
commit 16250ea7ba

View File

@ -16,4 +16,16 @@ struct Foo {
e: f32, e: f32,
} }
// Test for https://github.com/rust-lang/rust/issues/117942
struct Foo {
_: union {
#[rustfmt::skip]
f: String,
},
#[rustfmt::skip]
_: struct {
g: i32,
},
}
fn main() {} fn main() {}