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