1 note: External requirements
2 --> $DIR/escape-upvar-nested.rs:31:32
4 31 | let mut closure1 = || p = &y;
7 = note: defining type: DefId(0/1:10 ~ escape_upvar_nested[317d]::test[0]::{{closure}}[0]::{{closure}}[0]) with closure substs [
9 extern "rust-call" fn(()),
10 &'_#1r mut &'_#2r i32,
13 = note: number of external vids: 4
14 = note: where '_#3r: '_#2r
16 note: External requirements
17 --> $DIR/escape-upvar-nested.rs:30:27
19 30 | let mut closure = || { //~ ERROR `y` does not live long enough [E0597]
20 | ___________________________^
21 31 | | let mut closure1 = || p = &y;
26 = note: defining type: DefId(0/1:9 ~ escape_upvar_nested[317d]::test[0]::{{closure}}[0]) with closure substs [
28 extern "rust-call" fn(()),
29 &'_#1r mut &'_#2r i32,
32 = note: number of external vids: 4
33 = note: where '_#3r: '_#2r
35 note: No external requirements
36 --> $DIR/escape-upvar-nested.rs:23:1
40 25 | | let mut p = &x;
47 = note: defining type: DefId(0/0:3 ~ escape_upvar_nested[317d]::test[0]) with substs []
49 error[E0597]: `y` does not live long enough
50 --> $DIR/escape-upvar-nested.rs:30:27
52 30 | let mut closure = || { //~ ERROR `y` does not live long enough [E0597]
53 | ___________________________^
54 31 | | let mut closure1 = || p = &y;
57 | |_________^ borrowed value does not live long enough
60 | - borrowed value only lives until here
63 | - borrow later used here
65 = note: borrowed value must be valid for lifetime '_#4r...
67 error: aborting due to previous error