13 lines
224 B
Rust
13 lines
224 B
Rust
|
trait Next {
|
||
|
type Next: Next;
|
||
|
}
|
||
|
|
||
|
struct GetNext<T: Next> { t: T }
|
||
|
|
||
|
impl<T: Next> Next for GetNext<T> {
|
||
|
//~^ ERROR overflow evaluating the requirement
|
||
|
type Next = <GetNext<T::Next> as Next>::Next;
|
||
|
}
|
||
|
|
||
|
fn main() {}
|