From 20414b8e1f9c92c30fb7ff79f0a75c6a7ac78214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maik=20Allg=C3=B6wer?= Date: Tue, 16 Apr 2024 23:30:05 +0200 Subject: [PATCH] Add another expression to weird-exprs.rs --- tests/ui/weird-exprs.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/ui/weird-exprs.rs b/tests/ui/weird-exprs.rs index d856b06e260b8..0009ed0e34c89 100644 --- a/tests/ui/weird-exprs.rs +++ b/tests/ui/weird-exprs.rs @@ -256,6 +256,20 @@ fn fake_macros() -> impl std::fmt::Debug { } } +fn fish_fight() { + trait Rope { + fn _____________(_: Self, _: U) where Self: Sized {} + } + + struct T; + + impl Rope for T {} + + fn tug_o_war(_: impl Fn(T, T)) {} + + tug_o_war(::_____________::); +} + pub fn main() { strange(); funny(); @@ -284,4 +298,5 @@ pub fn main() { infcx(); return_already(); fake_macros(); + fish_fight(); }