1 error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'s` due to conflicting requirements
2 --> $DIR/issue-55394.rs:9:9
7 note: first, the lifetime cannot outlive the anonymous lifetime defined on the method body at 8:17...
8 --> $DIR/issue-55394.rs:8:17
10 LL | fn new(bar: &mut Bar) -> Self {
12 note: ...so that reference does not outlive borrowed content
13 --> $DIR/issue-55394.rs:9:15
17 note: but, the lifetime must be valid for the lifetime `'_` as defined on the impl at 7:10...
18 --> $DIR/issue-55394.rs:7:10
22 note: ...so that the expression is assignable
23 --> $DIR/issue-55394.rs:9:9
27 = note: expected `Foo<'_>`
30 error: aborting due to previous error
32 For more information about this error, try `rustc --explain E0495`.