1 error: lifetime may not live long enough
2 --> $DIR/regions-trait-object-subtyping.rs:15:5
4 LL | fn foo3<'a,'b>(x: &'a mut Dummy) -> &'b mut Dummy {
5 | -- -- lifetime `'b` defined here
7 | lifetime `'a` defined here
8 LL | // Without knowing 'a:'b, we can't coerce
10 | ^ returning this value requires that `'a` must outlive `'b`
12 error: lifetime may not live long enough
13 --> $DIR/regions-trait-object-subtyping.rs:22:5
15 LL | fn foo4<'a:'b,'b>(x: Wrapper<&'a mut Dummy>) -> Wrapper<&'b mut Dummy> {
16 | -- -- lifetime `'b` defined here
18 | lifetime `'a` defined here
19 LL | // We can't coerce because it is packed in `Wrapper`
21 | ^ returning this value requires that `'b` must outlive `'a`
23 error: aborting due to 2 previous errors