10 lines
185 B
Rust
10 lines
185 B
Rust
|
|
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() {}
|