]> git.proxmox.com Git - rustc.git/blob - tests/ui/issues/issue-17431-5.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }