Add a test for #53708
This issue was accidentally fixed recently, probably by #70743
This commit is contained in:
parent
5bfd3e7259
commit
3519411700
1 changed files with 11 additions and 0 deletions
11
src/test/ui/consts/const_in_pattern/issue-53708.rs
Normal file
11
src/test/ui/consts/const_in_pattern/issue-53708.rs
Normal 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 => {}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue