]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32326.stderr
5967627e51a4b4bb104478ca2e3bae23bd404284
[rust.git] / src / test / ui / issues / issue-32326.stderr
1 error[E0072]: recursive type `Expr` has infinite size
2   --> $DIR/issue-32326.rs:5:1
3    |
4 LL | enum Expr {
5    | ^^^^^^^^^ recursive type has infinite size
6 LL |     Plus(Expr, Expr),
7    |          ----  ---- recursive without indirection
8    |          |
9    |          recursive without indirection
10    |
11    = help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `Expr` representable
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0072`.