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