about summary refs log tree commit diff
path: root/tests/ui/associated-types/issue-71113.rs
blob: 51429f9ee6738f7a7285ee17287f8e2fe0b23eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ check-pass

use std::borrow::Cow;

enum _Recursive<'a>
where
    Self: ToOwned<Owned=Box<Self>>
{
    Variant(MyCow<'a, _Recursive<'a>>),
}

pub struct Wrapper<T>(T);

pub struct MyCow<'a, T: ToOwned<Owned=Box<T>> + 'a>(Wrapper<Cow<'a, T>>);

fn main() {}