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