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