diff options
| author | bors <bors@rust-lang.org> | 2024-11-23 07:47:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-23 07:47:52 +0000 |
| commit | 6e1c11591fc7e98015f8e793a15c8faf0bda67f1 (patch) | |
| tree | fadaf2abbac0b2db1e397ee1e4ac682d3769cf2c /src/tools/rustfmt/tests/source | |
| parent | c49a687d636e3464cdc6599fb562c29470526b01 (diff) | |
| parent | 9022bb2d6f49c328ef463d95caa4959fac63c478 (diff) | |
| download | rust-6e1c11591fc7e98015f8e793a15c8faf0bda67f1.tar.gz rust-6e1c11591fc7e98015f8e793a15c8faf0bda67f1.zip | |
Auto merge of #132915 - veluca93:unsafe-fields, r=jswrenn
Implement the unsafe-fields RFC. RFC: rust-lang/rfcs#3458 Tracking: - https://github.com/rust-lang/rust/issues/132922 r? jswrenn
Diffstat (limited to 'src/tools/rustfmt/tests/source')
| -rw-r--r-- | src/tools/rustfmt/tests/source/unsafe-field.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/unsafe-field.rs b/src/tools/rustfmt/tests/source/unsafe-field.rs new file mode 100644 index 00000000000..35cf40a22d3 --- /dev/null +++ b/src/tools/rustfmt/tests/source/unsafe-field.rs @@ -0,0 +1,16 @@ +struct Foo { + unsafe + field: (), +} + +enum Bar { + Variant { + unsafe + field: (), + }, +} + +union Baz { + unsafe + field: (), +} |
