1 error: expected one of `,`, `@`, `]`, or `|`, found `..`
2 --> $DIR/issue-72373.rs:5:19
4 LL | [h, ref ts..] => foo(c, n - h) + foo(ts, n),
5 | ^^ expected one of `,`, `@`, `]`, or `|`
7 help: if you meant to bind the contents of the rest of the array pattern into `ts`, use `@`
9 LL | [h, ref ts @ ..] => foo(c, n - h) + foo(ts, n),
12 error: aborting due to 1 previous error