]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17431-5.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[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 }