about summary refs log tree commit diff
path: root/tests/ui/lifetimes/issue-105675.rs
blob: 0472537e7f34c98d8a332d127c002fae2ad26454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn thing(x: impl FnOnce(&u32, &u32, u32)) {}

fn main() {
    let f = | _ , y: &u32 , z | ();
    thing(f);
    //~^ ERROR implementation of `FnOnce` is not general enough
    //~| ERROR implementation of `FnOnce` is not general enough
    let f = | x, y: _  , z: u32 | ();
    thing(f);
    //~^ 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
}