1 error[E0277]: the trait bound `u8: std::slice::SliceIndex<[isize]>` is not satisfied
2 --> $DIR/integral-indexing.rs:6:5
4 LL | v[3u8]; //~ERROR : std::slice::SliceIndex<[isize]>` is not satisfied
5 | ^^^^^^ slice indices are of type `usize` or ranges of `usize`
7 = help: the trait `std::slice::SliceIndex<[isize]>` is not implemented for `u8`
8 = note: required because of the requirements on the impl of `std::ops::Index<u8>` for `std::vec::Vec<isize>`
10 error[E0277]: the trait bound `i8: std::slice::SliceIndex<[isize]>` is not satisfied
11 --> $DIR/integral-indexing.rs:7:5
13 LL | v[3i8]; //~ERROR : std::slice::SliceIndex<[isize]>` is not satisfied
14 | ^^^^^^ slice indices are of type `usize` or ranges of `usize`
16 = help: the trait `std::slice::SliceIndex<[isize]>` is not implemented for `i8`
17 = note: required because of the requirements on the impl of `std::ops::Index<i8>` for `std::vec::Vec<isize>`
19 error[E0277]: the trait bound `u32: std::slice::SliceIndex<[isize]>` is not satisfied
20 --> $DIR/integral-indexing.rs:8:5
22 LL | v[3u32]; //~ERROR : std::slice::SliceIndex<[isize]>` is not satisfied
23 | ^^^^^^^ slice indices are of type `usize` or ranges of `usize`
25 = help: the trait `std::slice::SliceIndex<[isize]>` is not implemented for `u32`
26 = note: required because of the requirements on the impl of `std::ops::Index<u32>` for `std::vec::Vec<isize>`
28 error[E0277]: the trait bound `i32: std::slice::SliceIndex<[isize]>` is not satisfied
29 --> $DIR/integral-indexing.rs:9:5
31 LL | v[3i32]; //~ERROR : std::slice::SliceIndex<[isize]>` is not satisfied
32 | ^^^^^^^ slice indices are of type `usize` or ranges of `usize`
34 = help: the trait `std::slice::SliceIndex<[isize]>` is not implemented for `i32`
35 = note: required because of the requirements on the impl of `std::ops::Index<i32>` for `std::vec::Vec<isize>`
37 error[E0277]: the trait bound `u8: std::slice::SliceIndex<[u8]>` is not satisfied
38 --> $DIR/integral-indexing.rs:12:5
40 LL | s.as_bytes()[3u8]; //~ERROR : std::slice::SliceIndex<[u8]>` is not satisfied
41 | ^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
43 = help: the trait `std::slice::SliceIndex<[u8]>` is not implemented for `u8`
44 = note: required because of the requirements on the impl of `std::ops::Index<u8>` for `[u8]`
46 error[E0277]: the trait bound `i8: std::slice::SliceIndex<[u8]>` is not satisfied
47 --> $DIR/integral-indexing.rs:13:5
49 LL | s.as_bytes()[3i8]; //~ERROR : std::slice::SliceIndex<[u8]>` is not satisfied
50 | ^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
52 = help: the trait `std::slice::SliceIndex<[u8]>` is not implemented for `i8`
53 = note: required because of the requirements on the impl of `std::ops::Index<i8>` for `[u8]`
55 error[E0277]: the trait bound `u32: std::slice::SliceIndex<[u8]>` is not satisfied
56 --> $DIR/integral-indexing.rs:14:5
58 LL | s.as_bytes()[3u32]; //~ERROR : std::slice::SliceIndex<[u8]>` is not satisfied
59 | ^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
61 = help: the trait `std::slice::SliceIndex<[u8]>` is not implemented for `u32`
62 = note: required because of the requirements on the impl of `std::ops::Index<u32>` for `[u8]`
64 error[E0277]: the trait bound `i32: std::slice::SliceIndex<[u8]>` is not satisfied
65 --> $DIR/integral-indexing.rs:15:5
67 LL | s.as_bytes()[3i32]; //~ERROR : std::slice::SliceIndex<[u8]>` is not satisfied
68 | ^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
70 = help: the trait `std::slice::SliceIndex<[u8]>` is not implemented for `i32`
71 = note: required because of the requirements on the impl of `std::ops::Index<i32>` for `[u8]`
73 error: aborting due to 8 previous errors
75 For more information about this error, try `rustc --explain E0277`.