]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0072]: recursive type `S` has infinite size |
0731742a | 2 | --> $DIR/issue-3779.rs:1:1 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | struct S { |
ff7c6d11 | 5 | | ^^^^^^^^ recursive type has infinite size |
532ac7d7 | 6 | LL | |
0531ce1d | 7 | LL | element: Option<S> |
f035d41b | 8 | | --------- recursive without indirection |
ff7c6d11 | 9 | | |
f035d41b XL |
10 | help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to make `S` representable |
11 | | | |
12 | LL | element: Box<Option<S>> | |
13 | | ^^^^ ^ | |
ff7c6d11 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
0531ce1d | 17 | For more information about this error, try `rustc --explain E0072`. |