]> git.lizzy.rs Git - rust.git/blob - src/test/ui/sized-cycle-note.rs
Merge commit '2bb3996244cf1b89878da9e39841e9f6bf061602' into sync_cg_clif-2022-12-14
[rust.git] / src / test / ui / sized-cycle-note.rs
1 struct Baz { q: Option<Foo> }
2 //~^ ERROR recursive types `Baz` and `Foo` have infinite size
3 struct Foo { q: Option<Baz> }
4
5 impl Foo { fn bar(&self) {} }
6
7 fn main() {}