1 error[E0308]: mismatched types
2 --> $DIR/object-lifetime-default-from-rptr-box-error.rs:25:12
4 LL | ss.t = t; //~ ERROR mismatched types
7 = note: expected type `&'a std::boxed::Box<(dyn Test + 'static)>`
8 found type `&'a std::boxed::Box<(dyn Test + 'a)>`
9 note: the lifetime 'a as defined on the function body at 24:6...
10 --> $DIR/object-lifetime-default-from-rptr-box-error.rs:24:6
12 LL | fn c<'a>(t: &'a Box<Test+'a>, mut ss: SomeStruct<'a>) {
14 = note: ...does not necessarily outlive the static lifetime
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.