1 error: range is out of bounds
2 --> $DIR/issue-3102.rs:9:13
4 LL | &x[num..10]; // should trigger out of bounds error
7 = note: `-D clippy::out-of-bounds-indexing` implied by `-D warnings`
9 error: range is out of bounds
10 --> $DIR/issue-3102.rs:10:8
12 LL | &x[10..num]; // should trigger out of bounds error
15 error: aborting due to 2 previous errors