summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/promoted-liveness.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/nll/promoted-liveness.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/nll/promoted-liveness.rs b/src/test/ui/nll/promoted-liveness.rs
new file mode 100644
index 000000000..e5a8e1e5c
--- /dev/null
+++ b/src/test/ui/nll/promoted-liveness.rs
@@ -0,0 +1,8 @@
+// Test that promoted that have larger mir bodies than their containing function
+// don't cause an ICE.
+
+// check-pass
+
+fn main() {
+ &["0", "1", "2", "3", "4", "5", "6", "7"];
+}