Add a test for #53708

This issue was accidentally fixed recently, probably by #70743
This commit is contained in:
Nadrieril 2020-10-21 19:24:59 +01:00
parent 5bfd3e7259
commit 3519411700

View file

@ -0,0 +1,11 @@
// check-pass
// https://github.com/rust-lang/rust/issues/53708
#[derive(PartialEq, Eq)]
struct S;
fn main() {
const C: &S = &S;
match C {
C => {}
}
}