blob: 9a8dafe13940ab5d86a75b0b865d4057e3adc0c6 [file] [log] [blame]
trait Mirror {
type Image;
}
impl<T> Mirror for T { type Image = T; }
trait Foo {
fn recurse(&self);
}
impl<T> Foo for T {
#[allow(unconditional_recursion)]
fn recurse(&self) { //~ ERROR reached the type-length limit
(self, self).recurse();
}
}
fn main() {
().recurse();
}