2014-10-06 01:20:25 -05:00
|
|
|
struct Baz { q: Option<Foo> }
|
2016-04-16 07:16:36 -05:00
|
|
|
//~^ ERROR recursive type `Baz` has infinite size
|
2014-10-06 01:20:25 -05:00
|
|
|
|
|
|
|
struct Foo { q: Option<Baz> }
|
2016-01-08 20:41:37 -06:00
|
|
|
//~^ ERROR recursive type `Foo` has infinite size
|
2014-10-06 01:20:25 -05:00
|
|
|
|
|
|
|
impl Foo { fn bar(&self) {} }
|
|
|
|
|
|
|
|
fn main() {}
|