]> git.lizzy.rs Git - rust.git/blob - src/test/ui/infinite/infinite-struct.rs
Rollup merge of #100396 - chenyukang:fix-100394, r=petrochenkov
[rust.git] / src / test / ui / infinite / infinite-struct.rs
1 struct Take(Take);
2 //~^ ERROR has infinite size
3
4 // check that we don't hang trying to find the tail of a recursive struct (#79437)
5 fn foo() -> Take {
6     Take(loop {})
7 }
8
9 fn main() {}