fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
651 B20 linesraw
1error[E0478]: lifetime bound not satisfied
2  --> $DIR/regions-wf-trait-object.rs:7:5
3   |
4LL |     x: Box<dyn TheTrait<'a>+'b>
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7note: 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   |
10LL | struct Foo<'a,'b> {
11   |               ^^
12note: 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   |
15LL | struct Foo<'a,'b> {
16   |            ^^
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0478`.