2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-06-06 20:56:57 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:10:11
|
2020-04-23 21:28:18 +00:00
|
|
|
|
|
2020-04-24 21:52:02 +00:00
|
|
|
LL | match arr[idx] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-23 21:28:18 +00:00
|
|
|
|
|
2020-04-25 08:33:40 +00:00
|
|
|
= note: `-D clippy::match-on-vec-items` implied by `-D warnings`
|
2020-04-23 21:28:18 +00:00
|
|
|
|
2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:19:11
|
2020-04-23 21:28:18 +00:00
|
|
|
|
|
2020-04-24 21:52:02 +00:00
|
|
|
LL | match arr[range] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-24 21:52:02 +00:00
|
|
|
|
2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:33:11
|
2020-04-24 21:52:02 +00:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-24 21:52:02 +00:00
|
|
|
|
2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:41:11
|
2020-04-24 21:52:02 +00:00
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-24 21:52:02 +00:00
|
|
|
|
2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:55:11
|
2020-04-24 21:52:02 +00:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-24 21:52:02 +00:00
|
|
|
|
2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:63:11
|
2020-04-24 21:52:02 +00:00
|
|
|
|
|
|
|
|
LL | match arr[range] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-24 21:52:02 +00:00
|
|
|
|
2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:77:11
|
2020-04-24 21:52:02 +00:00
|
|
|
|
|
|
|
|
LL | match arr[idx] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^ help: try: `arr.get(idx)`
|
2020-04-24 21:52:02 +00:00
|
|
|
|
2020-04-26 14:57:19 +00:00
|
|
|
error: indexing into a vector may panic
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/match_on_vec_items.rs:85:11
|
2020-04-23 21:28:18 +00:00
|
|
|
|
|
2020-04-24 21:52:02 +00:00
|
|
|
LL | match arr[range] {
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^ help: try: `arr.get(range)`
|
2020-04-23 21:28:18 +00:00
|
|
|
|
2020-04-24 21:52:02 +00:00
|
|
|
error: aborting due to 8 previous errors
|
2020-04-23 21:28:18 +00:00
|
|
|
|