blob: 8e13045623b3d1b2d2e1d20cab517338d1682a9e [file] [log] [blame]
fn thing(x: impl FnOnce(&u32)) {}
fn main() {
let f = |_| ();
thing(f);
//~^ ERROR mismatched types
//~^^ ERROR implementation of `FnOnce` is not general enough
}