]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-wf-trait-object.stderr
9f39508604110df3c48abb2becb2a3a1208a8828
[rust.git] / src / test / ui / regions / regions-wf-trait-object.stderr
1 error[E0478]: lifetime bound not satisfied
2   --> $DIR/regions-wf-trait-object.rs:7:5
3    |
4 LL |     x: Box<dyn TheTrait<'a>+'b>
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: lifetime parameter instantiated with the lifetime `'b` as defined on the struct at 6:15
8   --> $DIR/regions-wf-trait-object.rs:6:15
9    |
10 LL | struct Foo<'a,'b> {
11    |               ^^
12 note: but lifetime parameter must outlive the lifetime `'a` as defined on the struct at 6:12
13   --> $DIR/regions-wf-trait-object.rs:6:12
14    |
15 LL | struct Foo<'a,'b> {
16    |            ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0478`.