summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/user-annotations/issue-54124.rs
blob: 5ae03c894067df64d0d2c269d501a1509f20faad (plain)
1
2
3
4
5
6
7
8
fn test<'a>() {
    let _:fn(&()) = |_:&'a ()| {}; //~ ERROR lifetime may not live long enough
    //~^ ERROR lifetime may not live long enough
}

fn main() {
    test();
}