When repeating an array of tuples, why does Rust not destroy the tuples? For instance:
let x: &[(usize, usize)] = &[...]; for (a,b) in x.iter() { ... }
leads to an error:
error: type mismatch resolving `<core::slice::Iter<'_, (usize, usize)> as core::iter::Iterator>::Item == (_, _)`: expected &-ptr, found tuple [E0271]
source share