rust/src/test/ui/issue-32326.stderr

16 lines
529 B
Plaintext
Raw Normal View History

error[E0072]: recursive type `Expr` has infinite size
--> $DIR/issue-32326.rs:15:1
|
2018-02-23 03:42:32 +03:00
LL | enum Expr { //~ ERROR E0072
| ^^^^^^^^^ recursive type has infinite size
2018-02-23 03:42:32 +03:00
LL | Plus(Expr, Expr),
2018-05-09 16:26:18 -07:00
| ---- ---- recursive without indirection
| |
| recursive without indirection
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Expr` representable
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0072`.