Skip to content

Commit

Permalink
Add a test for #53708
Browse files Browse the repository at this point in the history
This issue was accidentally fixed recently, probably by #70743
  • Loading branch information
Nadrieril committed Oct 21, 2020
1 parent 5bfd3e7 commit 3519411
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/ui/consts/const_in_pattern/issue-53708.rs
@@ -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 => {}
}
}

0 comments on commit 3519411

Please sign in to comment.