2017-12-10 13:47:55 -06:00
|
|
|
error[E0072]: recursive type `bar` has infinite size
|
|
|
|
--> $DIR/issue-3008-2.rs:12:1
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | struct bar { x: bar }
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^ ------ recursive without indirection
|
|
|
|
| |
|
|
|
|
| recursive type has infinite size
|
|
|
|
|
|
|
|
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `bar` representable
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0072"
|