2023-03-18 03:21:01 +00:00
|
|
|
fn thing(x: impl FnOnce(&u32, &u32, u32)) {}
|
2023-03-18 02:22:49 +00:00
|
|
|
|
|
|
|
fn main() {
|
2023-03-18 03:21:01 +00:00
|
|
|
let f = | _ , y: &u32 , z | ();
|
2023-03-18 02:22:49 +00:00
|
|
|
thing(f);
|
2024-01-11 12:02:50 +00: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-18 03:21:01 +00:00
|
|
|
let f = | x, y: _ , z: u32 | ();
|
2023-03-18 02:22:49 +00:00
|
|
|
thing(f);
|
2024-01-11 12:02:50 +00: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-18 02:22:49 +00:00
|
|
|
}
|