]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-72373.rs
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
[rust.git] / src / test / ui / parser / issues / issue-72373.rs
1 fn foo(c: &[u32], n: u32) -> u32 {
2     match *c {
3         [h, ..] if h > n => 0,
4         [h, ..] if h == n => 1,
5         [h, ref ts..] => foo(c, n - h) + foo(ts, n),
6         //~^ ERROR expected one of `,`, `@`, `]`, or `|`, found `..`
7         [] => 0,
8     }
9 }