blob: 62f9702b9f41135343dbc5d7ba4e5dbd2a28a766 [file] [log] [blame] [edit]
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() {}