Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
pattern
/
issue-117626.rs
blob: f87147a5d88ec7f9c178f2f804195a74afc53571 [
file
] [
log
] [
blame
]
// check-pass
#[
derive
(
PartialEq
)]
struct
NonMatchable
;
impl
Eq
for
NonMatchable
{}
#[
derive
(
PartialEq
,
Eq
)]
enum
Foo
{
A
(
NonMatchable
),
B
(*
const
u8
),
}
const
CONST
:
Foo
=
Foo
::
B
(
std
::
ptr
::
null
());
fn
main
()
{
match
CONST
{
CONST
=>
0
,
_
=>
1
,
};
}