blob: 97cbfe408f261c6b939228d1ed6ba89a461e5e8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// revisions: rpass cfail
enum A {
//[cfail]~^ ERROR 3:1: 3:7: recursive type `A` has infinite size [E0072]
B(C),
}
#[cfg(rpass)]
struct C(Box<A>);
#[cfg(cfail)]
struct C(A);
//[cfail]~^ ERROR 12:1: 12:9: recursive type `C` has infinite size [E0072]
fn main() {}
|