2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:9:11
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
2020-04-25 03:33:40 -05:00
|
|
|
= note: `-D clippy::match-on-vec-items` implied by `-D warnings`
|
2020-04-23 16:28:18 -05:00
|
|
|
|
2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:16:11
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
|
|
|
|
2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:29:11
|
2020-04-24 16:52:02 -05:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
|
|
|
|
2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:36:11
|
2020-04-24 16:52:02 -05:00
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
|
|
|
|
2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:49:11
|
2020-04-24 16:52:02 -05:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
|
|
|
|
2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:56:11
|
2020-04-24 16:52:02 -05:00
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
|
|
|
|
2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:69:11
|
2020-04-24 16:52:02 -05:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
|
|
|
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
|
|
|
|
2020-04-26 09:57:19 -05:00
|
|
|
error: indexing into a vector may panic
|
|
|
|
--> $DIR/match_on_vec_items.rs:76:11
|
2020-04-23 16:28:18 -05:00
|
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
LL | match arr[range] {
|
|
|
|
| ^^^^^^^^^^ help: try this: `arr.get(range)`
|
2020-04-23 16:28:18 -05:00
|
|
|
|
2020-04-24 16:52:02 -05:00
|
|
|
error: aborting due to 8 previous errors
|
2020-04-23 16:28:18 -05:00
|
|
|
|