]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17431-5.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.git] / src / test / ui / issues / issue-17431-5.rs
1 use std::marker;
2
3 struct Foo { foo: Bar<Foo> }
4
5 struct Bar<T> { x: Bar<Foo> , marker: marker::PhantomData<T> }
6 //~^ ERROR recursive type `Bar` has infinite size
7
8 impl Foo { fn foo(&self) {} }
9
10 fn main() {
11 }