rust/tests/ui/match_vec_item.stderr

53 lines
1.5 KiB
Plaintext

error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:18:11
|
LL | match arr[idx] {
| ^^^^^^^^ help: try this: `arr.get(idx)`
|
= note: `-D clippy::match-vec-item` implied by `-D warnings`
error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:25:11
|
LL | match arr[range] {
| ^^^^^^^^^^ help: try this: `arr.get(range)`
error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:38:11
|
LL | match arr[idx] {
| ^^^^^^^^ help: try this: `arr.get(idx)`
error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:45:11
|
LL | match arr[range] {
| ^^^^^^^^^^ help: try this: `arr.get(range)`
error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:58:11
|
LL | match arr[idx] {
| ^^^^^^^^ help: try this: `arr.get(idx)`
error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:65:11
|
LL | match arr[range] {
| ^^^^^^^^^^ help: try this: `arr.get(range)`
error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:78:11
|
LL | match arr[idx] {
| ^^^^^^^^ help: try this: `arr.get(idx)`
error: indexing vector may panic. Consider using `get`
--> $DIR/match_vec_item.rs:85:11
|
LL | match arr[range] {
| ^^^^^^^^^^ help: try this: `arr.get(range)`
error: aborting due to 8 previous errors