mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
13 lines
252 B
Rust
13 lines
252 B
Rust
fn check(list: &[Option<()>]) {
|
|
match list {
|
|
//~^ ERROR `&[_, Some(_), .., None, _]` not covered
|
|
&[] => {},
|
|
&[_] => {},
|
|
&[_, _] => {},
|
|
&[_, None, ..] => {},
|
|
&[.., Some(_), _] => {},
|
|
}
|
|
}
|
|
|
|
fn main() {}
|