]> git.proxmox.com Git - rustc.git/blob - 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
1 error: expected one of `:`, `@`, or `|`, found `<`
2 --> $DIR/issue-64252-self-type.rs:4:15
3 |
4 LL | pub fn foo(Box<Self>) { }
5 | ^ expected one of `:`, `@`, or `|`
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>) { }
17 | ^ expected one of `:`, `@`, or `|`
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