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
2
2
--> $DIR/index-help.rs:13:5
3
3
|
4
4
LL | 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`
6
6
|
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}]`
8
9
9
10
error: aborting due to previous error
10
11
You can’t perform that action at this time.
0 commit comments