summary refs log tree commit diff
path: root/src/test/ui/nll/user-annotations/issue-54124.rs
blob: 042ad028575bbfdc5fa76d077227ca06cc59a48b (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(nll)]

fn test<'a>() {
    let _:fn(&()) = |_:&'a ()| {}; //~ ERROR unsatisfied lifetime constraints
    //~^ ERROR unsatisfied lifetime constraints
}

fn main() {
    test();
}