]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-64252-self-type.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-64252-self-type.stderr
CommitLineData
e74abb32
XL
1error: expected one of `:`, `@`, or `|`, found `<`
2 --> $DIR/issue-64252-self-type.rs:4:15
3 |
4LL | 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)
8help: if this is a type, explicitly ignore the parameter name
9 |
10LL | pub fn foo(_: Box<Self>) { }
11 | ^^^^^^
12
13error: expected one of `:`, `@`, or `|`, found `<`
14 --> $DIR/issue-64252-self-type.rs:10:15
15 |
16LL | 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)
20help: if this is a `self` type, give it a parameter name
21 |
22LL | fn bar(self: Box<Self>) { }
23 | ^^^^^^^^^
24help: if this is a type, explicitly ignore the parameter name
25 |
26LL | fn bar(_: Box<Self>) { }
27 | ^^^^^^
28
29error: aborting due to 2 previous errors
30