mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 09:29:33 +00:00
18 lines
287 B
Rust
18 lines
287 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 constant of non-structural type `S` in a pattern
|
|
}
|
|
const K: &T = &T;
|
|
match K {
|
|
K => {}
|
|
}
|
|
}
|