2020-12-01 00:10:13 -08:00
|
|
|
fn thing(x: impl FnOnce(&u32)) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let f = |_| ();
|
2022-05-22 02:05:15 -04:00
|
|
|
thing(f);
|
2022-04-01 13:13:25 -04:00
|
|
|
//~^ ERROR mismatched types
|
2022-05-22 02:05:15 -04:00
|
|
|
//~^^ ERROR implementation of `FnOnce` is not general enough
|
2020-12-01 00:10:13 -08:00
|
|
|
}
|