rust/tests/ui/deriving/deriving-via-extension-struct-empty.rs
2023-01-11 09:32:08 +00:00

9 lines
121 B
Rust

// run-pass
#[derive(PartialEq, Debug)]
struct Foo;
pub fn main() {
assert_eq!(Foo, Foo);
assert!(!(Foo != Foo));
}