rust/tests/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.rs

8 lines
165 B
Rust
Raw Normal View History

2019-09-06 08:52:48 -05:00
fn main() {
let f = move || {};
let _action = move || {
|| f() // The `nested` closure
//~^ ERROR lifetime may not live long enough
};
}