2019-07-16 00:30:23 -05:00
|
|
|
error: range is out of bounds
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/out_of_bounds_indexing/issue-3102.rs:9:13
|
2019-07-16 00:30:23 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | &x[num..10];
|
2019-07-16 00:30:23 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::out-of-bounds-indexing` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::out_of_bounds_indexing)]`
|
2019-07-16 00:30:23 -05:00
|
|
|
|
|
|
|
error: range is out of bounds
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/out_of_bounds_indexing/issue-3102.rs:12:8
|
2019-07-16 00:30:23 -05:00
|
|
|
|
|
2023-08-24 14:32:12 -05:00
|
|
|
LL | &x[10..num];
|
2019-07-16 00:30:23 -05:00
|
|
|
| ^^
|
|
|
|
|
2019-07-16 15:26:47 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2019-07-16 00:30:23 -05:00
|
|
|
|