diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-23442.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-23442.rs b/src/test/ui/issues/issue-23442.rs new file mode 100644 index 000000000..d1e4317e5 --- /dev/null +++ b/src/test/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() {} |