fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0106]: missing lifetime specifier 2 --> $DIR/impl-fn-hrtb-bounds.rs:19:38 3 | 4LL | fn d() -> impl Fn() -> (impl Debug + '_) { 5 | ^^ expected named lifetime parameter 6 | 7 = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from 8help: consider using the `'static` lifetime 9 | 10LL | fn d() -> impl Fn() -> (impl Debug + 'static) { 11 | ~~~~~~~ 12 13error: higher kinded lifetime bounds on nested opaque types are not supported yet 14 --> $DIR/impl-fn-hrtb-bounds.rs:4:41 15 | 16LL | fn a() -> impl Fn(&u8) -> (impl Debug + '_) { 17 | ^^ 18 | 19note: lifetime declared here 20 --> $DIR/impl-fn-hrtb-bounds.rs:4:19 21 | 22LL | fn a() -> impl Fn(&u8) -> (impl Debug + '_) { 23 | ^ 24 25error: higher kinded lifetime bounds on nested opaque types are not supported yet 26 --> $DIR/impl-fn-hrtb-bounds.rs:9:52 27 | 28LL | fn b() -> impl for<'a> Fn(&'a u8) -> (impl Debug + 'a) { 29 | ^^ 30 | 31note: lifetime declared here 32 --> $DIR/impl-fn-hrtb-bounds.rs:9:20 33 | 34LL | fn b() -> impl for<'a> Fn(&'a u8) -> (impl Debug + 'a) { 35 | ^^ 36 37error: higher kinded lifetime bounds on nested opaque types are not supported yet 38 --> $DIR/impl-fn-hrtb-bounds.rs:14:52 39 | 40LL | fn c() -> impl for<'a> Fn(&'a u8) -> (impl Debug + '_) { 41 | ^^ 42 | 43note: lifetime declared here 44 --> $DIR/impl-fn-hrtb-bounds.rs:14:20 45 | 46LL | fn c() -> impl for<'a> Fn(&'a u8) -> (impl Debug + '_) { 47 | ^^ 48 49error: aborting due to 4 previous errors 50 51For more information about this error, try `rustc --explain E0106`.