]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-72373.rs
Merge commit '5034d47f721ff4c3a3ff2aca9ef2ef3e1d067f9f' into clippyup
[rust.git] / src / test / ui / 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 }