aboutsummaryrefslogtreecommitdiff
path: root/warning.rs
diff options
context:
space:
mode:
Diffstat (limited to 'warning.rs')
-rw-r--r--warning.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/warning.rs b/warning.rs
new file mode 100644
index 0000000..a71bc3f
--- /dev/null
+++ b/warning.rs
@@ -0,0 +1,11 @@
+use std::iter;
+
+fn main() {
+ let mut v = (0..20)
+ .map(|_| iter::empty::<()>())
+ .collect::<Vec<_>>();
+
+ for i in 1..8 {
+ v.remove(i + 1);
+ }
+}