]> git.lizzy.rs Git - rust.git/blob - tests/ui/out_of_bounds_indexing/issue-3102.stderr
Fix type checks for `manual_str_repeat`
[rust.git] / 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