rustc/tests/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.stderr
2023-08-02 10:33:26 +02:00

11 lines
349 B
Plaintext

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 previous error