summaryrefslogtreecommitdiffstats
path: root/src/test/ui/deriving/deriving-via-extension-struct-empty.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/deriving/deriving-via-extension-struct-empty.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/deriving/deriving-via-extension-struct-empty.rs b/src/test/ui/deriving/deriving-via-extension-struct-empty.rs
new file mode 100644
index 000000000..9fb250e84
--- /dev/null
+++ b/src/test/ui/deriving/deriving-via-extension-struct-empty.rs
@@ -0,0 +1,8 @@
+// run-pass
+#[derive(PartialEq, Debug)]
+struct Foo;
+
+pub fn main() {
+ assert_eq!(Foo, Foo);
+ assert!(!(Foo != Foo));
+}