mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
346 B
Plaintext
11 lines
346 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/object-lifetime-default-from-rptr-box-error.rs:15:5
|
|
|
|
|
LL | fn c<'a>(t: &'a Box<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
|
|
|