]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/out_of_bounds_indexing/issue-3102.stderr
Merge commit '70c0f90453701e7d6d9b99aaa1fc6a765937b736' into clippyup
[rust.git] / src / tools / clippy / tests / ui / out_of_bounds_indexing / issue-3102.stderr
1 error: range is out of bounds
2   --> $DIR/issue-3102.rs:9:13
3    |
4 LL |     &x[num..10]; // should trigger out of bounds error
5    |             ^^
6    |
7    = note: `-D clippy::out-of-bounds-indexing` implied by `-D warnings`
8
9 error: range is out of bounds
10   --> $DIR/issue-3102.rs:10:8
11    |
12 LL |     &x[10..num]; // should trigger out of bounds error
13    |        ^^
14
15 error: aborting due to 2 previous errors
16