Sign in
◑
Theme
gnu
/
gcc.git
/
refs/heads/trunk
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
slice_rest_pattern_2.rs
blob: 10316f750a762e86bd63fc5b93202be3fa45d1b7 [
file
]
// { dg-additional-options "-frust-compile-until=typecheck" }
#![
feature
(
no_core
)]
#![
no_core
]
pub
fn
foo
(
x
:
&[
u8
])
->
i32
{
match
x
{
[]
=>
0
,
[
1
,
xs
@
..]
=>
foo
(
xs
),
[
x
,
..]
=>
*
x
as
i32
}
}