1 error: range is out of bounds
2 --> $DIR/simple.rs:7:11
7 = note: `-D clippy::out-of-bounds-indexing` implied by `-D warnings`
9 error: range is out of bounds
10 --> $DIR/simple.rs:8:11
15 error: range is out of bounds
16 --> $DIR/simple.rs:9:8
21 error: range is out of bounds
22 --> $DIR/simple.rs:10:10
27 error: range is out of bounds
28 --> $DIR/simple.rs:11:8
30 LL | &x[5..].iter().map(|x| 2 * x).collect::<Vec<i32>>();
33 error: range is out of bounds
34 --> $DIR/simple.rs:12:12
39 error: aborting due to 6 previous errors