]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-23442.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-23442.rs
CommitLineData
60c5eb7d 1// check-pass
0bf4aa26 2#![allow(dead_code)]
e9174d1e 3use std::marker::PhantomData;
85aaf69f 4
e9174d1e
SL
5pub struct UnionedKeys<'a,K>
6 where K: UnifyKey + 'a
7{
8 table: &'a mut UnificationTable<K>,
9 root_key: K,
10 stack: Vec<K>,
11}
62682a34 12
e9174d1e
SL
13pub trait UnifyKey {
14 type Value;
15}
62682a34 16
e9174d1e
SL
17pub struct UnificationTable<K:UnifyKey> {
18 values: Delegate<K>,
62682a34 19}
e9174d1e
SL
20
21pub struct Delegate<K>(PhantomData<K>);
22
23fn main() {}