]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs
Add 'compiler/rustc_smir/' from commit '9abcb5c7b574cf316eb23d3f469187bb86ba3019'
[rust.git] / src / test / 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 }