Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
parser
/
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
,
}
}