1 2 3 4 5 6 7 8
// run-pass #[derive(PartialEq, Debug)] struct Foo; pub fn main() { assert_eq!(Foo, Foo); assert!(!(Foo != Foo)); }