]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-72373.stderr
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / ui / parser / issue-72373.stderr
1 error: expected one of `,`, `@`, `]`, or `|`, found `..`
2   --> $DIR/issue-72373.rs:5:19
3    |
4 LL |         [h, ref ts..] => foo(c, n - h) + foo(ts, n),
5    |                   ^^ expected one of `,`, `@`, `]`, or `|`
6    |
7 help: if you meant to bind the contents of the rest of the array pattern into `ts`, use `@`
8    |
9 LL |         [h, ref ts @ ..] => foo(c, n - h) + foo(ts, n),
10    |                    +
11
12 error: aborting due to previous error
13