blob: efa4e614be5b0e4f3e29eb4176b50461f3df8e86 [file] [log] [blame]
// ignore-compare-mode-chalk
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;
//~^ ERROR overflow evaluating the requirement
}
fn main() {}