summary refs log tree commit diff
path: root/tests/ui/enum/recursive-enum-memory-32326.rs
blob: 6b8b04a7c91ac459b628b77eeb59cbf33029c48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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