about summary refs log tree commit diff
path: root/tests/ui/issues/issue-32326.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-32326.rs')
-rw-r--r--tests/ui/issues/issue-32326.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-32326.rs b/tests/ui/issues/issue-32326.rs
new file mode 100644
index 00000000000..e928c66e2cc
--- /dev/null
+++ b/tests/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() { }