1 error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types
2 --> $DIR/issue-47511.rs:5:15
7 = note: lifetimes appearing in an associated type are not considered constrained
9 error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
10 --> $DIR/issue-47511.rs:10:23
12 LL | fn g<'a>(_: X<'a>) -> X<'a> {
15 error: aborting due to 2 previous errors
17 For more information about this error, try `rustc --explain E0581`.