summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/deriving-via-extension-hash-enum.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/deriving/deriving-via-extension-hash-enum.rs')
-rw-r--r--tests/ui/deriving/deriving-via-extension-hash-enum.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/deriving/deriving-via-extension-hash-enum.rs b/tests/ui/deriving/deriving-via-extension-hash-enum.rs
new file mode 100644
index 000000000..2d1ca05f4
--- /dev/null
+++ b/tests/ui/deriving/deriving-via-extension-hash-enum.rs
@@ -0,0 +1,17 @@
+// run-pass
+#![allow(dead_code)]
+#[derive(Hash)]
+enum Foo {
+ Bar(isize, char),
+ Baz(char, isize)
+}
+
+#[derive(Hash)]
+enum A {
+ B,
+ C,
+ D,
+ E
+}
+
+pub fn main(){}