1 error[E0597]: `*s.0` does not live long enough
2 --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:63:5
4 LL | &mut *s.0 //[nll]~ ERROR `*s.0` does not live long enough [E0597]
5 | ^^^^^^^^^ borrowed value does not live long enough
8 | - `*s.0` dropped here while still borrowed
10 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 62:14...
11 --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:62:14
13 LL | fn scribbled<'a>(s: Scribble<'a>) -> &'a mut u32 {
16 error[E0597]: `*s.0` does not live long enough
17 --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:73:5
19 LL | &mut *(*s).0 //[nll]~ ERROR `*s.0` does not live long enough [E0597]
20 | ^^^^^^^^^^^^ borrowed value does not live long enough
23 | - `*s.0` dropped here while still borrowed
25 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 72:20...
26 --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:72:20
28 LL | fn boxed_scribbled<'a>(s: Box<Scribble<'a>>) -> &'a mut u32 {
31 error[E0597]: `*s.0` does not live long enough
32 --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:83:5
34 LL | &mut *(**s).0 //[nll]~ ERROR `*s.0` does not live long enough [E0597]
35 | ^^^^^^^^^^^^^ borrowed value does not live long enough
38 | - `*s.0` dropped here while still borrowed
40 note: borrowed value must be valid for the lifetime 'a as defined on the function body at 82:26...
41 --> $DIR/issue-45696-scribble-on-boxed-borrow.rs:82:26
43 LL | fn boxed_boxed_scribbled<'a>(s: Box<Box<Scribble<'a>>>) -> &'a mut u32 {
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0597`.