blob: 65f8a32f06dd2a74ef4d974925d0a65804665e5e [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/object-lifetime-default-from-rptr-struct-error.rs:21:12
|
LL | ss.t = t;
| ^ lifetime mismatch
|
= note: expected reference `&'a MyBox<(dyn Test + 'static)>`
found reference `&'a MyBox<(dyn Test + 'a)>`
note: the lifetime `'a` as defined on the function body at 20:6...
--> $DIR/object-lifetime-default-from-rptr-struct-error.rs:20:6
|
LL | fn c<'a>(t: &'a MyBox<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`.