Skip to content

Commit

Permalink
Add rustfmt test from rust-lang#117942
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-king committed Feb 12, 2024
1 parent 0c0df4e commit 7d012e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tools/rustfmt/tests/target/anonymous-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {}

0 comments on commit 7d012e8

Please sign in to comment.