1 error[E0106]: missing lifetime specifier
2 --> $DIR/impl-fn-hrtb-bounds.rs:19:38
4 LL | fn d() -> impl Fn() -> (impl Debug + '_) {
5 | ^^ expected named lifetime parameter
7 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
8 help: consider using the `'static` lifetime
10 LL | fn d() -> impl Fn() -> (impl Debug + 'static) {
13 error: higher kinded lifetime bounds on nested opaque types are not supported yet
14 --> $DIR/impl-fn-hrtb-bounds.rs:4:41
16 LL | fn a() -> impl Fn(&u8) -> (impl Debug + '_) {
19 note: lifetime declared here
20 --> $DIR/impl-fn-hrtb-bounds.rs:4:19
22 LL | fn a() -> impl Fn(&u8) -> (impl Debug + '_) {
25 error: higher kinded lifetime bounds on nested opaque types are not supported yet
26 --> $DIR/impl-fn-hrtb-bounds.rs:9:52
28 LL | fn b() -> impl for<'a> Fn(&'a u8) -> (impl Debug + 'a) {
31 note: lifetime declared here
32 --> $DIR/impl-fn-hrtb-bounds.rs:9:20
34 LL | fn b() -> impl for<'a> Fn(&'a u8) -> (impl Debug + 'a) {
37 error: higher kinded lifetime bounds on nested opaque types are not supported yet
38 --> $DIR/impl-fn-hrtb-bounds.rs:14:52
40 LL | fn c() -> impl for<'a> Fn(&'a u8) -> (impl Debug + '_) {
43 note: lifetime declared here
44 --> $DIR/impl-fn-hrtb-bounds.rs:14:20
46 LL | fn c() -> impl for<'a> Fn(&'a u8) -> (impl Debug + '_) {
49 error: aborting due to 4 previous errors
51 For more information about this error, try `rustc --explain E0106`.