From b8c5a0f0eba036700775a33c924deaeeb34f3974 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Tue, 10 Dec 2024 19:41:48 +0000 Subject: Fix tools --- src/tools/rustfmt/tests/source/unsafe-binders.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/tools/rustfmt/tests/source/unsafe-binders.rs (limited to 'src/tools/rustfmt/tests/source') diff --git a/src/tools/rustfmt/tests/source/unsafe-binders.rs b/src/tools/rustfmt/tests/source/unsafe-binders.rs new file mode 100644 index 00000000000..ccf7c8bb9af --- /dev/null +++ b/src/tools/rustfmt/tests/source/unsafe-binders.rs @@ -0,0 +1,11 @@ +fn foo() -> unsafe<'a> +&'a () {} + +struct Foo { + x: unsafe<'a> +&'a (), +} + +struct Bar(unsafe<'a> &'a ()); + +impl Trait for unsafe<'a> &'a () {} -- cgit 1.4.1-3-g733a5