diff options
| author | Frank King <frankking1729@gmail.com> | 2024-01-06 15:52:22 +0800 |
|---|---|---|
| committer | Frank King <frankking1729@gmail.com> | 2024-02-12 12:47:30 +0800 |
| commit | 16250ea7ba73f858a6ee08374848fbea615ea6c3 (patch) | |
| tree | 93accac4164b9f849b98d7aa924755af04ff5075 | |
| parent | 88c5838c062eaa1521e0bf088088da4842711284 (diff) | |
| download | rust-16250ea7ba73f858a6ee08374848fbea615ea6c3.tar.gz rust-16250ea7ba73f858a6ee08374848fbea615ea6c3.zip | |
Add rustfmt test from #117942
| -rw-r--r-- | tests/target/anonymous-types.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/target/anonymous-types.rs b/tests/target/anonymous-types.rs index 8e08c314ed1..e8c2d83878c 100644 --- a/tests/target/anonymous-types.rs +++ b/tests/target/anonymous-types.rs @@ -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() {} |
