summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3008-1.rs
blob: 1124969e6d0a48125d9ee70f1ccd47f7b1cc57f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum Foo {
    Foo_(Bar)
}

enum Bar {
    //~^ ERROR recursive type `Bar` has infinite size
    BarNone,
    BarSome(Bar)
}

fn main() {
}