1 error: ambiguous `+` in a type
2 --> $DIR/impl-fn-parsing-ambiguities.rs:4:27
4 LL | fn a() -> impl Fn(&u8) -> impl Debug + '_ {
5 | ^^^^^^^^^^^^^^^ help: use parentheses to disambiguate: `(impl Debug + '_)`
7 error: ambiguous `+` in a type
8 --> $DIR/impl-fn-parsing-ambiguities.rs:10:24
10 LL | fn b() -> impl Fn() -> impl Debug + Send {
11 | ^^^^^^^^^^^^^^^^^ help: use parentheses to disambiguate: `(impl Debug + Send)`
13 error: higher kinded lifetime bounds on nested opaque types are not supported yet
14 --> $DIR/impl-fn-parsing-ambiguities.rs:4:40
16 LL | fn a() -> impl Fn(&u8) -> impl Debug + '_ {
19 note: lifetime declared here
20 --> $DIR/impl-fn-parsing-ambiguities.rs:4:19
22 LL | fn a() -> impl Fn(&u8) -> impl Debug + '_ {
25 error: aborting due to 3 previous errors