2012-08-31 22:10:44 +00:00
|
|
|
fn main() {
|
|
|
|
enum x { foo }
|
|
|
|
impl x : core::cmp::Eq {
|
2012-09-20 01:00:26 +00:00
|
|
|
pure fn eq(other: &x) -> bool { self as int == (*other) as int }
|
|
|
|
pure fn ne(other: &x) -> bool { !self.eq(other) }
|
2012-08-31 22:10:44 +00:00
|
|
|
}
|
|
|
|
}
|