mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
14 lines
216 B
Rust
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 => {}
|
|
}
|
|
}
|