]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32326.stderr
rustdoc: Remove unused Clean impls
[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 some indirection (e.g., a `Box`, `Rc`, or `&`) to make `Expr` representable
12    |
13 LL |     Plus(Box<Expr>, Box<Expr>),
14    |          ^^^^    ^  ^^^^    ^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0072`.