File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- error[E0277]: the trait bound `std::vec::Vec< {integer}>: std::ops::Index<i32 >` is not satisfied
1+ error[E0277]: the trait bound `i32: std::slice::SliceIndex<[ {integer}] >` is not satisfied
22 --> $DIR/index-help.rs:13:5
33 |
44LL | x[0i32]; //~ ERROR E0277
5- | ^^^^^^^ vector indices are of type `usize` or ranges of `usize`
5+ | ^^^^^^^ slice indices are of type `usize` or ranges of `usize`
66 |
7- = help: the trait `std::ops::Index<i32>` is not implemented for `std::vec::Vec<{integer}>`
7+ = help: the trait `std::slice::SliceIndex<[{integer}]>` is not implemented for `i32`
8+ = note: required because of the requirements on the impl of `std::ops::Index<i32>` for `[{integer}]`
89
910error: aborting due to previous error
1011
You can’t perform that action at this time.
0 commit comments