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