aboutsummaryrefslogtreecommitdiff
path: root/warning.rs
blob: a71bc3f125e8f543d415ab0342ff623d4b00ca90 (plain)
1
2
3
4
5
6
7
8
9
10
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);
    }
}