fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
483 B18 linesraw
1error: expected one of `:`, `@`, or `|`, found `<`
2  --> $DIR/pat-lt-bracket-2.rs:1:7
3   |
4LL | fn a(B<) {}
5   |       ^ expected one of `:`, `@`, or `|`
6   |
7   = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
8help: if this is a `self` type, give it a parameter name
9   |
10LL | fn a(self: B<) {}
11   |      ^^^^^^^
12help: if this is a type, explicitly ignore the parameter name
13   |
14LL | fn a(_: B<) {}
15   |      ^^^^
16
17error: aborting due to previous error
18