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);
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
//~^^ ERROR mismatched types
|
2023-03-17 22:21:01 -05:00
|
|
|
let f = | x, y: _ , z: u32 | ();
|
2023-03-17 21:22:49 -05:00
|
|
|
thing(f);
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
//~^^ ERROR mismatched types
|
|
|
|
//~^^^ ERROR implementation of `FnOnce` is not general enough
|
|
|
|
//~^^^^ ERROR implementation of `FnOnce` is not general enough
|
|
|
|
}
|