Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
consts
/
const_in_pattern
/
incomplete-slice.rs
blob: 4984acaaf798561948f34a8171f58a7872454dfe [
file
] [
log
] [
blame
]
#[
derive
(
PartialEq
)]
enum
E
{
A
,
}
const
E_SL
:
&[
E
]
=
&[
E
::
A
];
fn
main
()
{
match
&[][..]
{
//~^ ERROR non-exhaustive patterns: `&[]` and `&[_, _, ..]` not covered [E0004]
E_SL
=>
{}
}
}