blob: c391e87bf8d178f3063d184ea37f20247e6299bb [file] [log] [blame] [edit]
//@ run-pass
#![allow(dead_code)]
#![allow(non_camel_case_types)]
pub fn main() {
#[derive(Copy, Clone)]
enum x { foo }
impl ::std::cmp::PartialEq for x {
fn eq(&self, other: &x) -> bool {
(*self) as isize == (*other) as isize
}
fn ne(&self, other: &x) -> bool { !(*self).eq(other) }
}
}