1 note: No external requirements
2 --> $DIR/escape-argument.rs:26:38
4 LL | let mut closure = expect_sig(|p, y| *p = y);
7 = note: defining type: test::{{closure}}#0 with closure substs [
9 for<'r, 's> extern "rust-call" fn((&ReLateBound(DebruijnIndex(0), BrNamed('r)) mut &ReLateBound(DebruijnIndex(0), BrNamed('s)) i32, &ReLateBound(DebruijnIndex(0), BrNamed('s)) i32)),
12 note: No external requirements
13 --> $DIR/escape-argument.rs:20:1
17 LL | | let mut p = &x;
24 = note: defining type: test
26 error[E0597]: `y` does not live long enough
27 --> $DIR/escape-argument.rs:27:25
29 LL | closure(&mut p, &y);
30 | ^^ borrowed value does not live long enough
33 | - `y` dropped here while still borrowed
36 | - borrow later used here
38 error: aborting due to previous error
40 For more information about this error, try `rustc --explain E0597`.