Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
consts
/
match_ice.rs
blob: ed1fd78809b1258ff8395675cf950ae2c754b990 [
file
] [
log
] [
blame
] [
edit
]
// https://github.com/rust-lang/rust/issues/53708
struct
S
;
#[
derive
(
PartialEq
,
Eq
)]
struct
T
;
fn
main
()
{
const
C
:
&
S
=
&
S
;
match
C
{
C
=>
{}
//~^ ERROR must be annotated with `#[derive(PartialEq)]`
}
const
K
:
&
T
=
&
T
;
match
K
{
K
=>
{}
}
}