]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/issue-64252-self-type.stderr
Update upstream source from tag 'upstream/1.57.0+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 `self` type, give it a parameter name
9 |
10 LL | pub fn foo(self: Box<Self>) { }
11 | +++++
12 help: if this is a type, explicitly ignore the parameter name
13 |
14 LL | pub fn foo(_: Box<Self>) { }
15 | ++
16
17 error: expected one of `:`, `@`, or `|`, found `<`
18 --> $DIR/issue-64252-self-type.rs:10:15
19 |
20 LL | fn bar(Box<Self>) { }
21 | ^ expected one of `:`, `@`, or `|`
22 |
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
25 |
26 LL | fn bar(self: Box<Self>) { }
27 | +++++
28 help: if this is a type, explicitly ignore the parameter name
29 |
30 LL | fn bar(_: Box<Self>) { }
31 | ++
32
33 error: aborting due to 2 previous errors
34