1 error[E0277]: the type `[isize]` cannot be indexed by `u8`
2 --> $DIR/integral-indexing.rs:6:7
5 | ^^^ slice indices are of type `usize` or ranges of `usize`
7 = help: the trait `SliceIndex<[isize]>` is not implemented for `u8`
8 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
9 = note: required for `Vec<isize>` to implement `Index<u8>`
11 error[E0277]: the type `[isize]` cannot be indexed by `i8`
12 --> $DIR/integral-indexing.rs:7:7
15 | ^^^ slice indices are of type `usize` or ranges of `usize`
17 = help: the trait `SliceIndex<[isize]>` is not implemented for `i8`
18 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
19 = note: required for `Vec<isize>` to implement `Index<i8>`
21 error[E0277]: the type `[isize]` cannot be indexed by `u32`
22 --> $DIR/integral-indexing.rs:8:7
25 | ^^^^ slice indices are of type `usize` or ranges of `usize`
27 = help: the trait `SliceIndex<[isize]>` is not implemented for `u32`
28 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
29 = note: required for `Vec<isize>` to implement `Index<u32>`
31 error[E0277]: the type `[isize]` cannot be indexed by `i32`
32 --> $DIR/integral-indexing.rs:9:7
35 | ^^^^ slice indices are of type `usize` or ranges of `usize`
37 = help: the trait `SliceIndex<[isize]>` is not implemented for `i32`
38 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
39 = note: required for `Vec<isize>` to implement `Index<i32>`
41 error[E0277]: the type `[u8]` cannot be indexed by `u8`
42 --> $DIR/integral-indexing.rs:12:18
44 LL | s.as_bytes()[3u8];
45 | ^^^ slice indices are of type `usize` or ranges of `usize`
47 = help: the trait `SliceIndex<[u8]>` is not implemented for `u8`
48 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
49 = note: required for `[u8]` to implement `Index<u8>`
51 error[E0277]: the type `[u8]` cannot be indexed by `i8`
52 --> $DIR/integral-indexing.rs:13:18
54 LL | s.as_bytes()[3i8];
55 | ^^^ slice indices are of type `usize` or ranges of `usize`
57 = help: the trait `SliceIndex<[u8]>` is not implemented for `i8`
58 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
59 = note: required for `[u8]` to implement `Index<i8>`
61 error[E0277]: the type `[u8]` cannot be indexed by `u32`
62 --> $DIR/integral-indexing.rs:14:18
64 LL | s.as_bytes()[3u32];
65 | ^^^^ slice indices are of type `usize` or ranges of `usize`
67 = help: the trait `SliceIndex<[u8]>` is not implemented for `u32`
68 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
69 = note: required for `[u8]` to implement `Index<u32>`
71 error[E0277]: the type `[u8]` cannot be indexed by `i32`
72 --> $DIR/integral-indexing.rs:15:18
74 LL | s.as_bytes()[3i32];
75 | ^^^^ slice indices are of type `usize` or ranges of `usize`
77 = help: the trait `SliceIndex<[u8]>` is not implemented for `i32`
78 = help: the trait `SliceIndex<[T]>` is implemented for `usize`
79 = note: required for `[u8]` to implement `Index<i32>`
81 error: aborting due to 8 previous errors
83 For more information about this error, try `rustc --explain E0277`.