2022-08-07 19:12:33 +02:00
|
|
|
#[derive(PartialEq)]
|
|
|
|
|
enum E {
|
|
|
|
|
A,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const E_SL: &[E] = &[E::A];
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
match &[][..] {
|
2023-09-26 09:39:41 +02:00
|
|
|
//~^ ERROR non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered [E0004]
|
2022-08-07 19:12:33 +02:00
|
|
|
E_SL => {}
|
|
|
|
|
}
|
|
|
|
|
}
|