mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 10:48:36 +00:00
16 lines
406 B
Text
16 lines
406 B
Text
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
|
|
|