2024-05-27 15:17:18 +02:00
|
|
|
//@ ignore-apple: cycle error does not appear on apple
|
2024-02-01 22:45:00 +00:00
|
|
|
|
2014-10-06 02:20:25 -04:00
|
|
|
use std::sync::Mutex;
|
|
|
|
|
|
|
|
enum Foo { X(Mutex<Option<Foo>>) }
|
2016-01-08 21:41:37 -05:00
|
|
|
//~^ ERROR recursive type `Foo` has infinite size
|
2024-02-01 22:45:00 +00:00
|
|
|
//~| ERROR cycle detected
|
2014-10-06 02:20:25 -04:00
|
|
|
|
|
|
|
impl Foo { fn bar(self) {} }
|
|
|
|
|
|
|
|
fn main() {}
|