From ef24de24a82fe681581cc130f342363c47c0969a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:48 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs (limited to 'tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs') diff --git a/tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs b/tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs new file mode 100644 index 000000000..b97fd7d1f --- /dev/null +++ b/tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs @@ -0,0 +1,11 @@ +// check-pass + +use std::ops::Deref; + +trait Foo { + fn foo() -> impl Deref> { + &&() + } +} + +fn main() {} -- cgit v1.2.3