]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/impl-fn-parsing-ambiguities.stderr
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / impl-trait / impl-fn-parsing-ambiguities.stderr
1 error: ambiguous `+` in a type
2   --> $DIR/impl-fn-parsing-ambiguities.rs:4:27
3    |
4 LL | fn a() -> impl Fn(&u8) -> impl Debug + '_ {
5    |                           ^^^^^^^^^^^^^^^ help: use parentheses to disambiguate: `(impl Debug + '_)`
6
7 error: ambiguous `+` in a type
8   --> $DIR/impl-fn-parsing-ambiguities.rs:10:24
9    |
10 LL | fn b() -> impl Fn() -> impl Debug + Send {
11    |                        ^^^^^^^^^^^^^^^^^ help: use parentheses to disambiguate: `(impl Debug + Send)`
12
13 error: higher kinded lifetime bounds on nested opaque types are not supported yet
14   --> $DIR/impl-fn-parsing-ambiguities.rs:4:40
15    |
16 LL | fn a() -> impl Fn(&u8) -> impl Debug + '_ {
17    |                                        ^^
18    |
19 note: lifetime declared here
20   --> $DIR/impl-fn-parsing-ambiguities.rs:4:19
21    |
22 LL | fn a() -> impl Fn(&u8) -> impl Debug + '_ {
23    |                   ^
24
25 error: aborting due to 3 previous errors
26