Sign in
◑
Theme
gnu
/
gcc.git
/
bb5c3bfcb28b423544676b30df5a3bc97e91c41f
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
match-slicepattern-slice.rs
blob: 4472f4480179960397e8bba96e06d6b5b5333c53 [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
fn
main
()
{
let
arr
=
[
1
,
2
];
let
slice
:
&[
i32
]
=
&
arr
;
match
slice
{
[
1
]
=>
{},
[
_
,
2
]
=>
{},
_
=>
{}
}
}