2018-08-08 12:28:26 +00:00
|
|
|
error[E0478]: lifetime bound not satisfied
|
2020-07-10 22:13:49 +00:00
|
|
|
--> $DIR/regions-wf-trait-object.rs:7:8
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-05-28 18:46:13 +00:00
|
|
|
LL | x: Box<dyn TheTrait<'a>+'b>
|
2020-07-10 22:13:49 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-10-10 23:58:35 +00:00
|
|
|
note: lifetime parameter instantiated with the lifetime `'b` as defined on the struct at 6:15
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/regions-wf-trait-object.rs:6:15
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | struct Foo<'a,'b> {
|
|
|
|
| ^^
|
2019-10-10 23:58:35 +00:00
|
|
|
note: but lifetime parameter must outlive the lifetime `'a` as defined on the struct at 6:12
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/regions-wf-trait-object.rs:6:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | struct Foo<'a,'b> {
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0478`.
|