]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0072]: recursive type `Foo` has infinite size |
0731742a | 2 | --> $DIR/issue-17431-6.rs:3:1 |
8faf50e0 XL |
3 | | |
4 | LL | enum Foo { X(Mutex<Option<Foo>>) } | |
2b03887a | 5 | | ^^^^^^^^ --- recursive without indirection |
8faf50e0 | 6 | | |
2b03887a | 7 | help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle |
f035d41b | 8 | | |
2b03887a FG |
9 | LL | enum Foo { X(Mutex<Option<Box<Foo>>>) } |
10 | | ++++ + | |
8faf50e0 XL |
11 | |
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0072`. |