summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/promoted-liveness.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/promoted-liveness.rs')
-rw-r--r--tests/ui/nll/promoted-liveness.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/nll/promoted-liveness.rs b/tests/ui/nll/promoted-liveness.rs
new file mode 100644
index 000000000..e5a8e1e5c
--- /dev/null
+++ b/tests/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"];
+}