1 error[E0308]: mismatched types
2 --> $DIR/issue-57611-trait-alias.rs:21:9
5 | ^^^^^ one type is more general than the other
7 = note: expected trait `for<'r> Fn<(&'r X,)>`
8 found trait `Fn<(&X,)>`
9 note: this closure does not fulfill the lifetime requirements
10 --> $DIR/issue-57611-trait-alias.rs:21:9
15 error: implementation of `FnOnce` is not general enough
16 --> $DIR/issue-57611-trait-alias.rs:21:9
19 | ^^^^^ implementation of `FnOnce` is not general enough
21 = note: closure with signature `fn(&'2 X) -> &X` must implement `FnOnce<(&'1 X,)>`, for any lifetime `'1`...
22 = note: ...but it actually implements `FnOnce<(&'2 X,)>`, for some specific lifetime `'2`
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0308`.