7 lines
139 B
Rust
7 lines
139 B
Rust
|
fn main() {
|
||
|
enum x { foo }
|
||
|
impl x : core::cmp::Eq {
|
||
|
pure fn eq(&&other: x) -> bool { self as int == other as int }
|
||
|
}
|
||
|
}
|