summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-17431-2.rs
blob: f7b9c6a55ddf7009a8c4510b218910a6dde4c96d (plain)
1
2
3
4
5
6
7
8
struct Baz { q: Option<Foo> }
//~^ ERROR recursive types `Baz` and `Foo` have infinite size

struct Foo { q: Option<Baz> }

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

fn main() {}