mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
19 lines
297 B
Rust
19 lines
297 B
Rust
// 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, Eq)]`
|
|
}
|
|
const K: &T = &T;
|
|
match K {
|
|
K => {}
|
|
}
|
|
}
|