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