]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
1 | error: expected one of `:`, `@`, or `|`, found `<` |
2 | --> $DIR/issue-64252-self-type.rs:4:15 | |
3 | | | |
4 | LL | pub fn foo(Box<Self>) { } | |
60c5eb7d | 5 | | ^ expected one of `:`, `@`, or `|` |
e74abb32 XL |
6 | | |
7 | = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) | |
8 | help: if this is a type, explicitly ignore the parameter name | |
9 | | | |
10 | LL | pub fn foo(_: Box<Self>) { } | |
11 | | ^^^^^^ | |
12 | ||
13 | error: expected one of `:`, `@`, or `|`, found `<` | |
14 | --> $DIR/issue-64252-self-type.rs:10:15 | |
15 | | | |
16 | LL | fn bar(Box<Self>) { } | |
60c5eb7d | 17 | | ^ expected one of `:`, `@`, or `|` |
e74abb32 XL |
18 | | |
19 | = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) | |
20 | help: if this is a `self` type, give it a parameter name | |
21 | | | |
22 | LL | fn bar(self: Box<Self>) { } | |
23 | | ^^^^^^^^^ | |
24 | help: if this is a type, explicitly ignore the parameter name | |
25 | | | |
26 | LL | fn bar(_: Box<Self>) { } | |
27 | | ^^^^^^ | |
28 | ||
29 | error: aborting due to 2 previous errors | |
30 |