2020-10-03 19:45:12 -05:00
|
|
|
// ignore-compare-mode-chalk
|
|
|
|
|
2016-06-16 02:46:25 -05:00
|
|
|
trait Next {
|
|
|
|
type Next: Next;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct GetNext<T: Next> { t: T }
|
|
|
|
|
|
|
|
impl<T: Next> Next for GetNext<T> {
|
|
|
|
type Next = <GetNext<T> as Next>::Next;
|
2019-02-23 16:25:30 -06:00
|
|
|
//~^ ERROR overflow evaluating the requirement
|
2016-06-16 02:46:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|