summaryrefslogtreecommitdiffstats
path: root/tests/incremental/issue-61323.rs
blob: 7ce47947cbb0c86118ea649ca31df1c3e1e78c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}