fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
450 B16 linesraw
1error[E0072]: recursive type `Expr` has infinite size
2  --> $DIR/issue-32326.rs:5:1
3   |
4LL | enum Expr {
5   | ^^^^^^^^^
6LL |     Plus(Expr, Expr),
7   |          ---- recursive without indirection
8   |
9help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle
10   |
11LL |     Plus(Box<Expr>, Expr),
12   |          ++++    +
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0072`.