Skip to content

Commit 3519411

Browse files
committed
Add a test for #53708
This issue was accidentally fixed recently, probably by #70743
1 parent 5bfd3e7 commit 3519411

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// check-pass
2+
// https://github.com/rust-lang/rust/issues/53708
3+
#[derive(PartialEq, Eq)]
4+
struct S;
5+
6+
fn main() {
7+
const C: &S = &S;
8+
match C {
9+
C => {}
10+
}
11+
}

0 commit comments

Comments
 (0)