about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/source
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-28 02:59:37 +0000
committerMichael Goulet <michael@errs.io>2025-02-28 02:59:40 +0000
commit5bf22375cf14d31a81362fe4230e4756e01483a0 (patch)
treefa4371419fc4c78117a50e6953b1b9a0b3bd9523 /src/tools/rustfmt/tests/source
parentf45d4acf1bb635aa010f19f8a749eed8293203b3 (diff)
Do not yeet unsafe<> from type
Diffstat (limited to 'src/tools/rustfmt/tests/source')
-rw-r--r--src/tools/rustfmt/tests/source/unsafe-binders.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/unsafe-binders.rs b/src/tools/rustfmt/tests/source/unsafe-binders.rs
index ccf7c8bb9af..2f43af54d20 100644
--- a/src/tools/rustfmt/tests/source/unsafe-binders.rs
+++ b/src/tools/rustfmt/tests/source/unsafe-binders.rs
@@ -9,3 +9,6 @@ struct Foo {
 struct Bar(unsafe<'a> &'a ());
 
 impl Trait for unsafe<'a> &'a () {}
+
+fn empty()
+-> unsafe<> () {}