Skip to content

Commit

Permalink
Rollup merge of rust-lang#124062 - allgoewer:fish-fight, r=oli-obk
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RalfJung authored Apr 17, 2024
2 parents 9912d5c + 20414b8 commit 79f8a60
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/ui/weird-exprs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,20 @@ fn fake_macros() -> impl std::fmt::Debug {
}
}

fn fish_fight() {
trait Rope {
fn _____________<U>(_: Self, _: U) where Self: Sized {}
}

struct T;

impl Rope for T {}

fn tug_o_war(_: impl Fn(T, T)) {}

tug_o_war(<T>::_____________::<T>);
}

pub fn main() {
strange();
funny();
Expand Down Expand Up @@ -284,4 +298,5 @@ pub fn main() {
infcx();
return_already();
fake_macros();
fish_fight();
}

0 comments on commit 79f8a60

Please sign in to comment.