1 error: lifetime may not live long enough
2 --> $DIR/issue-55394.rs:11:9
4 LL | fn new(bar: &mut Bar) -> Self {
5 | - ---- return type is Foo<'2>
7 | let's call the lifetime of this reference `'1`
8 LL | Foo { bar } //~ERROR lifetime may not live long enough
9 | ^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
11 error: aborting due to previous error