2020-05-27 13:09:54 -05:00
|
|
|
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),
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2020-05-27 13:09:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|