blob: 9e2422fdc77c14d62c624eb2769e4d4407ed0880 (
plain)
1
2
3
4
5
6
7
8
9
10
|
error: lifetime may not live long enough
--> $DIR/object-lifetime-default-from-rptr-struct-error.rs:20:5
|
LL | fn c<'a>(t: &'a MyBox<dyn Test+'a>, mut ss: SomeStruct<'a>) {
| -- lifetime `'a` defined here
LL | ss.t = t;
| ^^^^^^^^ assignment requires that `'a` must outlive `'static`
error: aborting due to 1 previous error
|