summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-15689-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-15689-1.rs')
-rw-r--r--tests/ui/issues/issue-15689-1.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-15689-1.rs b/tests/ui/issues/issue-15689-1.rs
new file mode 100644
index 000000000..d143926b2
--- /dev/null
+++ b/tests/ui/issues/issue-15689-1.rs
@@ -0,0 +1,10 @@
+// run-pass
+
+#[derive(PartialEq, Debug)]
+enum Test<'a> {
+ Slice(&'a isize)
+}
+
+fn main() {
+ assert_eq!(Test::Slice(&1), Test::Slice(&1))
+}