summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17431-4.rs
blob: 48f0dba2aec44a01f2419325cd1a027c0260bd55 (plain)
1
2
3
4
5
6
7
8
use std::marker;

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

impl<T> Foo<T> { fn bar(&self) {} }

fn main() {}