blob: af7fd53a1f1e916dc505338cf469b4183ae8a094 [file] [log] [blame]
#![feature(slice_patterns)]
fn check(list: &[Option<()>]) {
match list {
//~^ ERROR `&[_, Some(_), .., None, _]` not covered
&[] => {},
&[_] => {},
&[_, _] => {},
&[_, None, ..] => {},
&[.., Some(_), _] => {},
}
}
fn main() {}