blob: 70a203ea6e81468ba6e015f4006f4d4576e58184 (
plain)
1
2
3
4
5
6
7
8
9
10
|
struct Take(Take);
//~^ ERROR has infinite size
//~| ERROR cycle detected
// check that we don't hang trying to find the tail of a recursive struct (#79437)
fn foo() -> Take {
Take(loop {})
}
fn main() {}
|