]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/issue-53432-nested-closure-outlives-borrowed-value.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / borrowck / issue-53432-nested-closure-outlives-borrowed-value.stderr
1 error: lifetime may not live long enough
2 --> $DIR/issue-53432-nested-closure-outlives-borrowed-value.rs:4:9
3 |
4 LL | let _action = move || {
5 | -------
6 | | |
7 | | return type of closure is [closure@$DIR/issue-53432-nested-closure-outlives-borrowed-value.rs:4:9: 4:15]
8 | lifetime `'1` represents this closure's body
9 LL | || f() // The `nested` closure
10 | ^^^^^^ returning this value requires that `'1` must outlive `'2`
11 |
12 = note: closure implements `Fn`, so references to captured variables can't escape the closure
13
14 error: aborting due to previous error
15