rust/tests/incremental/issue-61323.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
211 B
Rust
Raw Normal View History

//@ revisions: rpass cfail
enum A {
2022-08-15 14:11:11 -05:00
//[cfail]~^ ERROR 3:1: 3:7: recursive types `A` and `C` have infinite size [E0072]
B(C),
}
#[cfg(rpass)]
struct C(Box<A>);
#[cfg(cfail)]
struct C(A);
fn main() {}