Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 3519411

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
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)