1 error[E0106]: missing lifetime specifiers
2 --> $DIR/missing-lt-for-hrtb.rs:2:32
4 LL | struct S<'a>(&'a dyn Fn(&X) -> &X);
5 | -- ^^ expected named lifetime parameter
7 | expected named lifetime parameter
9 = help: this function's return type contains a borrowed value, but the signature does not say which one of argument 1's 2 lifetimes it is borrowed from
10 help: consider using the `'a` lifetime
12 LL | struct S<'a>(&'a dyn Fn(&X) -> &'a X<'a>);
15 error[E0106]: missing lifetime specifiers
16 --> $DIR/missing-lt-for-hrtb.rs:4:40
18 LL | struct V<'a>(&'a dyn for<'b> Fn(&X) -> &X);
19 | -- ^^ expected named lifetime parameter
21 | expected named lifetime parameter
23 = help: this function's return type contains a borrowed value, but the signature does not say which one of argument 1's 2 lifetimes it is borrowed from
24 note: these named lifetimes are available to use
25 --> $DIR/missing-lt-for-hrtb.rs:4:10
27 LL | struct V<'a>(&'a dyn for<'b> Fn(&X) -> &X);
29 help: consider using one of the available lifetimes here
31 LL | struct V<'a>(&'a dyn for<'b> Fn(&X) -> &'lifetime X<'lifetime>);
32 | +++++++++ +++++++++++
34 error: aborting due to 2 previous errors
36 For more information about this error, try `rustc --explain E0106`.