summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-23122-2.rs
blob: 95e1f60d8b029b607d7dacc9a0785ce84f9c534c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trait Next {
    type Next: Next;
}

struct GetNext<T: Next> {
    t: T,
}

impl<T: Next> Next for GetNext<T> {
    type Next = <GetNext<T::Next> as Next>::Next;
    //~^ ERROR overflow evaluating the requirement
}

fn main() {}