2012-08-31 17:10:44 -05:00
|
|
|
fn main() {
|
|
|
|
enum x { foo }
|
|
|
|
impl x : core::cmp::Eq {
|
2012-09-19 20:00:26 -05: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 17:10:44 -05:00
|
|
|
}
|
|
|
|
}
|