diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-32326.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-32326.rs b/src/test/ui/issues/issue-32326.rs new file mode 100644 index 000000000..e928c66e2 --- /dev/null +++ b/src/test/ui/issues/issue-32326.rs @@ -0,0 +1,10 @@ +// 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() { } |