about summary refs log tree commit diff
path: root/tests/ui/issues/issue-23442.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-23442.rs')
-rw-r--r--tests/ui/issues/issue-23442.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-23442.rs b/tests/ui/issues/issue-23442.rs
new file mode 100644
index 00000000000..d1e4317e5b4
--- /dev/null
+++ b/tests/ui/issues/issue-23442.rs
@@ -0,0 +1,23 @@
+// check-pass
+#![allow(dead_code)]
+use std::marker::PhantomData;
+
+pub struct UnionedKeys<'a,K>
+    where K: UnifyKey + 'a
+{
+    table: &'a mut UnificationTable<K>,
+    root_key: K,
+    stack: Vec<K>,
+}
+
+pub trait UnifyKey {
+    type Value;
+}
+
+pub struct UnificationTable<K:UnifyKey> {
+    values: Delegate<K>,
+}
+
+pub struct Delegate<K>(PhantomData<K>);
+
+fn main() {}