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