From eca90a051b4daebe12a8421c6c4f57d5b5b9fbbd Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Wed, 9 Mar 2016 16:59:15 +0100 Subject: Allow ARM failure --- warning.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 warning.rs (limited to 'warning.rs') 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::>(); + + for i in 1..8 { + v.remove(i + 1); + } +} -- cgit v1.2.3