2012-12-10 15:04:04 -06:00
|
|
|
#[deriving_eq]
|
|
|
|
enum S {
|
|
|
|
X { x: int, y: int },
|
|
|
|
Y
|
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2012-12-10 15:04:04 -06:00
|
|
|
let x = X { x: 1, y: 2 };
|
2013-03-06 15:58:02 -06:00
|
|
|
fail_unless!(x == x);
|
|
|
|
fail_unless!(!(x != x));
|
2012-12-10 15:04:04 -06:00
|
|
|
}
|
|
|
|
|