os-rust/tests/ui/regions/regions-wf-trait-object.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
619 B
Text
Raw Normal View History

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