2024-02-22 06:10:29 -06:00
|
|
|
//@ revisions: rpass cfail
|
2019-12-06 03:48:53 -06:00
|
|
|
|
|
|
|
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]
|
2019-12-06 03:48:53 -06:00
|
|
|
B(C),
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(rpass)]
|
|
|
|
struct C(Box<A>);
|
|
|
|
|
|
|
|
#[cfg(cfail)]
|
|
|
|
struct C(A);
|
|
|
|
|
|
|
|
fn main() {}
|