mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
14 lines
444 B
Plaintext
14 lines
444 B
Plaintext
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 previous error
|
|
|