fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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