Issue 1:
This code:

fn main() {
let vec = vec![1,4,35,13,42,1];
for x in vec[3..] {
print!("{} ", x);
}
}

produces the following errors

main.rs:3:5: 5:6 error: the trait `core::marker::Sized` is not implemented for the type `[_]` [E0277]
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 note: `[_]` does not have a constant size known at compile-time
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 error: the trait `core::iter::Iterator` is not implemented for the type `[_]` [E0277]
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 note: `[_]` is not an iterator; maybe try calling `.iter()` or a similar method
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 error: the trait `core::marker::Sized` is not implemented for the type `[_]` [E0277]
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 note: `[_]` does not have a constant size known at compile-time
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 error: the trait `core::marker::Sized` is not implemented for the type `[_]` [E0277]
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 note: `[_]` does not have a constant size known at compile-time
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 error: the trait `core::iter::Iterator` is not implemented for the type `[_]` [E0277]
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 note: `[_]` is not an iterator; maybe try calling `.iter()` or a similar method
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 error: the trait `core::iter::Iterator` is not implemented for the type `[_]` [E0277]
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
main.rs:3:5: 5:6 note: `[_]` is not an iterator; maybe try calling `.iter()` or a similar method
main.rs:3 for x in vec[3..] {
main.rs:4 print!("{} ", x);
main.rs:5 }
note: in expansion of for loop expansion
main.rs:3:5: 5:6 note: expansion site
error: aborting due to 6 previous errors

Both the Sized and Iterator errors repeat multiple times, and I suspect they would repeat indefinitely if rustc didn't have an error threshold.

Issue 2:
fn main() {
let buf: &[u8] = &[12, 13, 14, 15, 16];
let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);

for i in indices {
// ...
}
}

Building the above produces 48 errors. Removing the map at the end results in only 20 error messages and adding another gives me 112!

Playpen: http://is.gd/zEJAf8

<anon>:3:85: 3:87 error: the type of this value must be known in this context
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~
note: in expansion of closure expansion
<anon>:3:73: 3:111 note: expansion site
<anon>:3:100: 3:102 error: the type of this value must be known in this context
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~
note: in expansion of closure expansion
<anon>:3:73: 3:111 note: expansion site
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:113: 3:133 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~
<anon>:3:66: 3:112 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<anon>:3:66: 3:112 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:3 let indices = buf.iter().zip(buf.iter().skip(1)).enumerate().filter(|_, (a, b)| *a == b'\r' && *b == b'\n').map(|(i, (_, _))| i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::IntoIterator::into_iter`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::Iterator::next`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::Iterator::next`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnMut<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::Iterator::next`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 note: required by `core::iter::Iterator::next`
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
<anon>:5:5: 7:6 error: type mismatch: the type `[closure <anon>:3:73: 3:111]` implements the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)), ([type error], [type error]))>`, but the trait `for<'r> core::ops::FnOnce<(&'r (usize, (&u8, &u8)),)>` is required (expected a tuple with 1 elements, found one with 2 elements) [E0281]
<anon>:5 for i in indices {
<anon>:6 // ...
<anon>:7 }
note: in expansion of for loop expansion
<anon>:5:5: 7:6 note: expansion site
error: aborting due to 48 previous errors
playpen: application terminated with error code 101