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