mirror of https://github.com/rust-lang/rust.git
15 lines
210 B
Rust
15 lines
210 B
Rust
|
// revisions: rpass cfail
|
||
|
|
||
|
enum A {
|
||
|
//[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() {}
|