summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/out_of_bounds_indexing/issue-3102.stderr
blob: 516c1df40be0acfc0edcabcdba0aa5b4c1bbc33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: range is out of bounds
  --> $DIR/issue-3102.rs:9:13
   |
LL |     &x[num..10]; // should trigger out of bounds error
   |             ^^
   |
   = note: `-D clippy::out-of-bounds-indexing` implied by `-D warnings`

error: range is out of bounds
  --> $DIR/issue-3102.rs:10:8
   |
LL |     &x[10..num]; // should trigger out of bounds error
   |        ^^

error: aborting due to 2 previous errors