We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bfd3e7 commit 3519411Copy full SHA for 3519411
src/test/ui/consts/const_in_pattern/issue-53708.rs
@@ -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