Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
match
/
match-slice-patterns.rs
blob: afbeb61e4415af0cd799b08d37fbc2f8c7f24f7b [
file
] [
log
] [
blame
]
#![
feature
(
slice_patterns
)]
fn
check
(
list
:
&[
Option
<()>])
{
match
list
{
//~^ ERROR `&[_, Some(_), None, _]` not covered
&[]
=>
{},
&[
_
]
=>
{},
&[
_
,
_
]
=>
{},
&[
_
,
None
,
..]
=>
{},
&[..,
Some
(
_
),
_
]
=>
{},
}
}
fn
main
()
{}