summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17431-7.rs
blob: 4fd7862781bfbc8950f7bed04ebbc94e2ea38c56 (plain)
1
2
3
4
5
6
enum Foo { Voo(Option<Option<Foo>>) }
//~^ ERROR recursive type `Foo` has infinite size

impl Foo { fn bar(&self) {} }

fn main() { }