blob: 48f0dba2aec44a01f2419325cd1a027c0260bd55 [file] [log] [blame]
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() {}