1 2 3 4 5 6 7 8
fn thing(x: impl FnOnce(&u32)) {} fn main() { let f = |_| (); thing(f); //~^ ERROR mismatched types //~^^ ERROR implementation of `FnOnce` is not general enough }