blob: 42bcdf2bd8c55c93ef769689260c35869ce8d6d6 [file] [log] [blame]
warning: not reporting region error due to nll
--> $DIR/object-lifetime-default-from-rptr-box-error.rs:25:12
|
LL | ss.t = t; //~ ERROR mismatched types
| ^
error: borrowed data escapes outside of function
--> $DIR/object-lifetime-default-from-rptr-box-error.rs:25:5
|
LL | fn c<'a>(t: &'a Box<Test+'a>, 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