]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0731742a XL |
2 | // revisions: old re |
3 | ||
4 | #![cfg_attr(re, feature(re_rebalance_coherence))] | |
0bf4aa26 | 5 | #![allow(dead_code)] |
b7449926 XL |
6 | #![allow(non_camel_case_types)] |
7 | ||
223e47cc | 8 | pub fn main() { |
c34b1796 | 9 | #[derive(Copy, Clone)] |
223e47cc | 10 | enum x { foo } |
1a4d82fc | 11 | impl ::std::cmp::PartialEq for x { |
223e47cc | 12 | fn eq(&self, other: &x) -> bool { |
c34b1796 | 13 | (*self) as isize == (*other) as isize |
223e47cc LB |
14 | } |
15 | fn ne(&self, other: &x) -> bool { !(*self).eq(other) } | |
16 | } | |
17 | } |