2023-03-17 22:21:01 -05:00
|
|
|
fn thing(x: impl FnOnce(&u32, &u32, u32)) {}
|
2023-03-17 21:22:49 -05:00
|
|
|
|
|
|
|
fn main() {
|
2023-03-17 22:21:01 -05:00
|
|
|
let f = | _ , y: &u32 , z | ();
|
2023-03-17 21:22:49 -05:00
|
|
|
thing(f);
|
2024-01-11 06:02:50 -06:00
|
|
|
//~^ ERROR implementation of `FnOnce` is not general enough
|
2024-03-09 23:14:11 -06:00
|
|
|
//~| ERROR implementation of `FnOnce` is not general enough
|
2023-03-17 22:21:01 -05:00
|
|
|
let f = | x, y: _ , z: u32 | ();
|
2023-03-17 21:22:49 -05:00
|
|
|
thing(f);
|
2024-01-11 06:02:50 -06:00
|
|
|
//~^ ERROR implementation of `FnOnce` is not general enough
|
|
|
|
//~| ERROR implementation of `FnOnce` is not general enough
|
|
|
|
//~| ERROR implementation of `FnOnce` is not general enough
|
|
|
|
//~| ERROR implementation of `FnOnce` is not general enough
|
2023-03-17 21:22:49 -05:00
|
|
|
}
|