mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
293 B
Rust
18 lines
293 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)]`
|
|
}
|
|
const K: &T = &T;
|
|
match K {
|
|
K => {}
|
|
}
|
|
}
|