blob: fd47a4ec9cc6a15646f34d892e533a951943bb45 [file] [log] [blame]
struct Take(Take);
//~^ ERROR has infinite size
//~| ERROR cycle
// check that we don't hang trying to find the tail of a recursive struct (#79437)
fn foo() -> Take {
Take(loop {})
}
// mutually infinite structs
struct Foo { //~ ERROR has infinite size
x: Bar<Foo>,
}
struct Bar<T>([T; 1]);
fn main() {}
//~? ERROR reached the recursion limit finding the struct tail for `Take`