blob: b6e6f136c757bbb6b1c0194cc74aaebcf04ae762 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// run-pass
#![allow(dead_code)]
#[derive(PartialEq, Debug)]
enum S {
X { x: isize, y: isize },
Y
}
pub fn main() {
let x = S::X { x: 1, y: 2 };
assert_eq!(x, x);
assert!(!(x != x));
}
|