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

17 lines
406 B
Text
Raw Normal View History

error: range is out of bounds
2019-07-16 20:26:47 +00:00
--> $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
2019-07-16 20:26:47 +00:00
--> $DIR/issue-3102.rs:10:8
|
LL | &x[10..num]; // should trigger out of bounds error
| ^^
2019-07-16 20:26:47 +00:00
error: aborting due to 2 previous errors