Skip to content

Commit 79f8a60

Browse files
authored
Rollup merge of #124062 - allgoewer:fish-fight, r=oli-obk
Add another expression to weird-exprs.rs I'm almost feeling bad for this but I decided I don't. Feel free to close if you don't approve.
2 parents 9912d5c + 20414b8 commit 79f8a60

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/ui/weird-exprs.rs

+15
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,20 @@ fn fake_macros() -> impl std::fmt::Debug {
256256
}
257257
}
258258

259+
fn fish_fight() {
260+
trait Rope {
261+
fn _____________<U>(_: Self, _: U) where Self: Sized {}
262+
}
263+
264+
struct T;
265+
266+
impl Rope for T {}
267+
268+
fn tug_o_war(_: impl Fn(T, T)) {}
269+
270+
tug_o_war(<T>::_____________::<T>);
271+
}
272+
259273
pub fn main() {
260274
strange();
261275
funny();
@@ -284,4 +298,5 @@ pub fn main() {
284298
infcx();
285299
return_already();
286300
fake_macros();
301+
fish_fight();
287302
}

0 commit comments

Comments
 (0)