Add another expression to weird-exprs.rs
This commit is contained in:
parent
6c6b3027ef
commit
20414b8e1f
@ -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();
|
||||
@ -284,4 +298,5 @@ pub fn main() {
|
||||
infcx();
|
||||
return_already();
|
||||
fake_macros();
|
||||
fish_fight();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user