2012-08-31 17:10:44 -05:00
|
|
|
fn main() {
|
|
|
|
enum x { foo }
|
|
|
|
impl x : core::cmp::Eq {
|
|
|
|
pure fn eq(&&other: x) -> bool { self as int == other as int }
|
2012-09-07 14:06:02 -05:00
|
|
|
pure fn ne(&&other: x) -> bool { !self.eq(other) }
|
2012-08-31 17:10:44 -05:00
|
|
|
}
|
|
|
|
}
|