]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/pat-lt-bracket-2.stderr
Rollup merge of #88601 - ibraheemdev:termination-result-infallible, r=yaahc
[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