mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
Add rustfmt test from #117942
This commit is contained in:
@@ -16,4 +16,16 @@ struct Foo {
|
||||
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() {}
|
||||
|
||||
Reference in New Issue
Block a user