2019-01-14 17:54:00 +01:00
|
|
|
// https://github.com/rust-lang/rust/issues/53708
|
|
|
|
|
|
|
|
struct S;
|
|
|
|
|
2019-04-19 14:53:34 -07:00
|
|
|
#[derive(PartialEq, Eq)]
|
|
|
|
struct T;
|
|
|
|
|
2019-01-14 17:54:00 +01:00
|
|
|
fn main() {
|
|
|
|
const C: &S = &S;
|
2019-04-19 14:53:34 -07:00
|
|
|
match C {
|
|
|
|
C => {}
|
2020-09-23 17:52:37 +02:00
|
|
|
//~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]`
|
2019-04-19 14:53:34 -07:00
|
|
|
}
|
|
|
|
const K: &T = &T;
|
2020-07-01 15:10:51 +02:00
|
|
|
match K {
|
2019-04-19 14:53:34 -07:00
|
|
|
K => {}
|
2019-01-14 17:54:00 +01:00
|
|
|
}
|
|
|
|
}
|