]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17431-2.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-17431-2.rs
1 struct Baz { q: Option<Foo> }
2 //~^ ERROR recursive types `Baz` and `Foo` have infinite size
3
4 struct Foo { q: Option<Baz> }
5
6 impl Foo { fn bar(&self) {} }
7
8 fn main() {}