use std::any::Any; pub struct EventHandler { } impl EventHandler { pub fn handle_event(&mut self, _efunc: impl FnMut(T)) {} } struct TestEvent(i32); fn main() { let mut evt = EventHandler {}; evt.handle_event::(|_evt| { //~^ ERROR cannot provide explicit type parameters }); }