2016-11-05 06:32:35 -05:00
|
|
|
fn check(list: &[Option<()>]) {
|
|
|
|
match list {
|
2019-11-05 10:30:04 -06:00
|
|
|
//~^ ERROR `&[_, Some(_), .., None, _]` not covered
|
2016-11-05 06:32:35 -05:00
|
|
|
&[] => {},
|
|
|
|
&[_] => {},
|
|
|
|
&[_, _] => {},
|
|
|
|
&[_, None, ..] => {},
|
|
|
|
&[.., Some(_), _] => {},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|