We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46fef76 commit 2db05f0Copy full SHA for 2db05f0
src/test/ui/index-help.stderr
@@ -1,10 +1,11 @@
1
-error[E0277]: the trait bound `std::vec::Vec<{integer}>: std::ops::Index<i32>` is not satisfied
+error[E0277]: the trait bound `i32: std::slice::SliceIndex<[{integer}]>` is not satisfied
2
--> $DIR/index-help.rs:13:5
3
|
4
LL | x[0i32]; //~ ERROR E0277
5
- | ^^^^^^^ vector indices are of type `usize` or ranges of `usize`
+ | ^^^^^^^ slice indices are of type `usize` or ranges of `usize`
6
7
- = help: the trait `std::ops::Index<i32>` is not implemented for `std::vec::Vec<{integer}>`
+ = 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}]`
9
10
error: aborting due to previous error
11
0 commit comments