summary refs log tree commit diff
path: root/src/test/ui/index-help.stderr
blob: e1652b6c262c7820f3724c1ff94feddc3bacabd7 (plain)
1
2
3
4
5
6
7
8
9
10
error[E0277]: the trait bound `std::vec::Vec<{integer}>: std::ops::Index<i32>` is not satisfied
  --> $DIR/index-help.rs:13:5
   |
13 |     x[0i32]; //~ ERROR E0277
   |     ^^^^^^^ vector indices are of type `usize` or ranges of `usize`
   |
   = help: the trait `std::ops::Index<i32>` is not implemented for `std::vec::Vec<{integer}>`

error: aborting due to previous error