rust/tests/ui/consts/const_in_pattern/incomplete-slice.rs
2024-01-24 07:56:23 +01:00

14 lines
216 B
Rust

#[derive(PartialEq)]
enum E {
A,
}
const E_SL: &[E] = &[E::A];
fn main() {
match &[][..] {
//~^ ERROR non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered [E0004]
E_SL => {}
}
}