summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-72373.stderr
blob: c596c6abda553b70a429b7e0bfc7c956dc8546e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected one of `,`, `@`, `]`, or `|`, found `..`
  --> $DIR/issue-72373.rs:5:19
   |
LL |         [h, ref ts..] => foo(c, n - h) + foo(ts, n),
   |                   ^^ expected one of `,`, `@`, `]`, or `|`
   |
help: if you meant to bind the contents of the rest of the array pattern into `ts`, use `@`
   |
LL |         [h, ref ts @ ..] => foo(c, n - h) + foo(ts, n),
   |                    +

error: aborting due to 1 previous error