error: borrowed data escapes outside of function --> $DIR/object-lifetime-default-from-rptr-struct-error.rs:31:5 | LL | fn c<'a>(t: &'a MyBox, mut ss: SomeStruct<'a>) { | - `t` is a reference that is only valid in the function body LL | ss.t = t; //~ ERROR mismatched types | ^^^^^^^^ `t` escapes the function body here error: aborting due to previous error