summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-3029.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-3029.rs')
-rw-r--r--tests/ui/issues/issue-3029.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-3029.rs b/tests/ui/issues/issue-3029.rs
new file mode 100644
index 000000000..a5d30960a
--- /dev/null
+++ b/tests/ui/issues/issue-3029.rs
@@ -0,0 +1,14 @@
+// run-fail
+// error-pattern:so long
+// ignore-emscripten no processes
+
+#![allow(unused_allocation)]
+#![allow(unreachable_code)]
+#![allow(unused_variables)]
+
+fn main() {
+ let mut x = Vec::new();
+ let y = vec![3];
+ panic!("so long");
+ x.extend(y.into_iter());
+}