rust-clippy/tests/ui/out_of_bounds_indexing/issue-3102.stderr

16 lines
330 B
Text

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