]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-23122-2.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / issues / issue-23122-2.rs
1 trait Next {
2     type Next: Next;
3 }
4
5 struct GetNext<T: Next> {
6     t: T,
7 }
8
9 impl<T: Next> Next for GetNext<T> {
10     type Next = <GetNext<T::Next> as Next>::Next;
11     //~^ ERROR overflow evaluating the requirement
12 }
13
14 fn main() {}