summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/struct-rec/issue-17431-5.rs
blob: 0fd6ee61156fd25499aad843a3390fbe3d48ed4e (plain)
1
2
3
4
5
6
7
8
9
10
11
use std::marker;

struct Foo { foo: Bar<Foo> }

struct Bar<T> { x: Bar<Foo> , marker: marker::PhantomData<T> }
//~^ ERROR recursive type `Bar` has infinite size

impl Foo { fn foo(&self) {} }

fn main() {
}