Skip to content

Commit

Permalink
Add 82909
Browse files Browse the repository at this point in the history
  • Loading branch information
fanninpm committed Mar 12, 2021
1 parent 1cf803b commit 3455415
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ices/82909.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
struct Sum(u32, u32);
impl PartialEq for Sum {
fn eq(&self, other: &Self) -> bool {
0 == 0
}
}
#[derive(PartialEq)]
enum Eek {
UnusedByTheConst(Sum),
}
const SUM_THREE: Eek = Eek::UnusedByTheConst(Sum(3, 0));
const EEK_ONE: &[Eek] = &[SUM_THREE];
fn main() {
match &&&[][..] {
&&EEK_ONE => {}
}
}

0 comments on commit 3455415

Please sign in to comment.