]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / ui / borrowck / issue-53432-nested-closure-outlives-borrowed-value.rs
1 fn main() {
2     let f = move || {};
3     let _action = move || {
4         || f() // The `nested` closure
5         //~^ ERROR lifetime may not live long enough
6     };
7 }