rust/tests/ui/enum/recursive-enum-memory-32326.rs
2025-07-24 17:01:44 -04:00

13 lines
283 B
Rust

// Regression test for #32326. We ran out of memory because we
// attempted to expand this case up to the recursion limit, and 2^N is
// too big.
enum Expr { //~ ERROR E0072
Plus(Expr, Expr),
Literal(i64),
}
fn main() { }
// https://github.com/rust-lang/rust/issues/32326