2015-02-12 10:29:52 -05:00
|
|
|
use std::marker;
|
|
|
|
|
2014-10-06 02:20:25 -04:00
|
|
|
struct Foo { foo: Bar<Foo> }
|
2016-01-08 21:41:37 -05:00
|
|
|
|
2015-02-12 10:29:52 -05:00
|
|
|
struct Bar<T> { x: Bar<Foo> , marker: marker::PhantomData<T> }
|
2016-01-08 21:41:37 -05:00
|
|
|
//~^ ERROR recursive type `Bar` has infinite size
|
2014-10-06 02:20:25 -04:00
|
|
|
|
|
|
|
impl Foo { fn foo(&self) {} }
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|