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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
165 B
Rust
Raw Normal View History

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