summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lifetimes/issue-79187.rs
blob: 8e13045623b3d1b2d2e1d20cab517338d1682a9e (plain)
1
2
3
4
5
6
7
8
fn thing(x: impl FnOnce(&u32)) {}

fn main() {
    let f = |_| ();
    thing(f);
    //~^ ERROR mismatched types
    //~^^ ERROR implementation of `FnOnce` is not general enough
}