1 error[E0106]: missing lifetime specifier
2 --> $DIR/impl-fn-hrtb-bounds.rs:22: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: lifetime may not live long enough
26 --> $DIR/impl-fn-hrtb-bounds.rs:6:9
29 | -- ^ returning this value requires that `'1` must outlive `'2`
31 | |return type of closure is impl Debug + '2
34 error: higher kinded lifetime bounds on nested opaque types are not supported yet
35 --> $DIR/impl-fn-hrtb-bounds.rs:10:52
37 LL | fn b() -> impl for<'a> Fn(&'a u8) -> (impl Debug + 'a) {
40 note: lifetime declared here
41 --> $DIR/impl-fn-hrtb-bounds.rs:10:20
43 LL | fn b() -> impl for<'a> Fn(&'a u8) -> (impl Debug + 'a) {
46 error: lifetime may not live long enough
47 --> $DIR/impl-fn-hrtb-bounds.rs:12:9
50 | -- ^ returning this value requires that `'1` must outlive `'2`
52 | |return type of closure is impl Debug + '2
55 error: higher kinded lifetime bounds on nested opaque types are not supported yet
56 --> $DIR/impl-fn-hrtb-bounds.rs:16:52
58 LL | fn c() -> impl for<'a> Fn(&'a u8) -> (impl Debug + '_) {
61 note: lifetime declared here
62 --> $DIR/impl-fn-hrtb-bounds.rs:16:20
64 LL | fn c() -> impl for<'a> Fn(&'a u8) -> (impl Debug + '_) {
67 error: lifetime may not live long enough
68 --> $DIR/impl-fn-hrtb-bounds.rs:18:9
71 | -- ^ returning this value requires that `'1` must outlive `'2`
73 | |return type of closure is impl Debug + '2
76 error: aborting due to 7 previous errors
78 For more information about this error, try `rustc --explain E0106`.