]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-lt-bracket-2.stderr
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.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