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