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