mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 11:03:16 +00:00
17 lines
468 B
Text
17 lines
468 B
Text
error: range is out of bounds
|
|
--> tests/ui/out_of_bounds_indexing/issue-3102.rs:9:13
|
|
|
|
|
LL | &x[num..10];
|
|
| ^^
|
|
|
|
|
= note: `-D clippy::out-of-bounds-indexing` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::out_of_bounds_indexing)]`
|
|
|
|
error: range is out of bounds
|
|
--> tests/ui/out_of_bounds_indexing/issue-3102.rs:12:8
|
|
|
|
|
LL | &x[10..num];
|
|
| ^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|