blob: a3b510848dcd38b0b0cd96911837cf6245cd0ee5 [file] [log] [blame] [edit]
use std::cell::UnsafeCell;
enum Foo { X(UnsafeCell<Option<Foo>>) }
//~^ ERROR recursive type `Foo` has infinite size
//~| ERROR cycle detected
impl Foo { fn bar(self) {} }
fn main() {}