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);
|
2024-01-11 13:02:50 +01:00
|
|
|
//~^ ERROR implementation of `FnOnce` is not general enough
|
|
|
|
//~| ERROR implementation of `FnOnce` is not general enough
|
2020-12-01 00:10:13 -08:00
|
|
|
}
|