blob: 86ec58d3f068a114f22140f20f89784b4466c248 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/object-lifetime-default-from-rptr-box-error.rs:15:12
|
LL | ss.t = t;
| ^ lifetime mismatch
|
= note: expected reference `&'a std::boxed::Box<(dyn Test + 'static)>`
found reference `&'a std::boxed::Box<(dyn Test + 'a)>`
note: the lifetime `'a` as defined on the function body at 14:6...
--> $DIR/object-lifetime-default-from-rptr-box-error.rs:14:6
|
LL | fn c<'a>(t: &'a Box<dyn Test+'a>, mut ss: SomeStruct<'a>) {
| ^^
= note: ...does not necessarily outlive the static lifetime
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.