Skip to content

Commit 2db05f0

Browse files
committed
Update UI test
1 parent 46fef76 commit 2db05f0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/ui/index-help.stderr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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
|
44
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`
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

910
error: aborting due to previous error
1011

0 commit comments

Comments
 (0)