//@ check-fail //@ known-bug: #103705 // The output of this currently suggests writing a closure in the qualified path. trait MyTrait { fn lol(&self, f:F) -> u16; } struct Qqq; impl MyTrait for Qqq{ fn lol(&self, _f:F) -> u16 { 5 } } impl MyTrait for Qqq{ fn lol(&self, _f:F) -> u16 { 6 } } fn main() { let q = Qqq; q.lol(||()); }