blob: defffe2b84b0d56bc0451ffd150d177b562414da [file] [log] [blame]
error: lifetime may not live long enough
--> $DIR/object-lifetime-default-from-rptr-box-error.rs:15:5
|
LL | fn c<'a>(t: &'a Box<dyn Test+'a>, mut ss: SomeStruct<'a>) {
| -- lifetime `'a` defined here
LL | ss.t = t;
| ^^^^^^^^ assignment requires that `'a` must outlive `'static`
|
= help: consider replacing `'a` with `'static`
error: aborting due to previous error