2016-06-16 09:46:25 +02:00
|
|
|
trait Next {
|
|
|
|
type Next: Next;
|
|
|
|
}
|
|
|
|
|
2022-02-09 10:19:31 +00:00
|
|
|
struct GetNext<T: Next> {
|
|
|
|
t: T,
|
|
|
|
}
|
2016-06-16 09:46:25 +02:00
|
|
|
|
|
|
|
impl<T: Next> Next for GetNext<T> {
|
|
|
|
type Next = <GetNext<T> as Next>::Next;
|
2019-02-23 23:25:30 +01:00
|
|
|
//~^ ERROR overflow evaluating the requirement
|
2016-06-16 09:46:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|