]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/pat-lt-bracket-2.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / parser / pat-lt-bracket-2.stderr
1 error: expected one of `:`, `@`, or `|`, found `<`
2 --> $DIR/pat-lt-bracket-2.rs:1:7
3 |
4 LL | fn a(B<) {}
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 | fn a(self: B<) {}
11 | ~~~~~~~
12 help: if this is a type, explicitly ignore the parameter name
13 |
14 LL | fn a(_: B<) {}
15 | ~~~~
16
17 error: aborting due to previous error
18