summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs
blob: f1fd1b507c71e0b98bd840115b324b9d3525fdab (plain)
1
2
3
4
5
6
7
fn main() {
    let f = move || {};
    let _action = move || {
        || f() // The `nested` closure
        //~^ ERROR lifetime may not live long enough
    };
}