Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-72373.rs
blob: 4da6061c27fe840a82da12e0cb340dece6a4745e [
file
] [
log
] [
blame
]
fn
foo
(
c
:
&[
u32
],
n
:
u32
)
->
u32
{
match
*
c
{
[
h
,
..]
if
h
>
n
=>
0
,
[
h
,
..]
if
h
==
n
=>
1
,
[
h
,
ref
ts
..]
=>
foo
(
c
,
n
-
h
)
+
foo
(
ts
,
n
),
//~^ ERROR expected one of `,`, `@`, `]`, or `|`, found `..`
[]
=>
0
,
}
}