blob: a882aa36af758978bf08e529ff7a81f9934018f9 [file] [log] [blame]
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> as Next>::Next;
}
fn main() {}