@@ -6,6 +6,7 @@ LL | v[3u8];
66 |
77 = help: the trait `SliceIndex<[isize]>` is not implemented for `u8`
88 = help: the trait `SliceIndex<[isize]>` is implemented for `usize`
9+ = help: ... for that trait implementation, expected `usize`, found `u8`
910 = note: required for `Vec<isize>` to implement `Index<u8>`
1011
1112error[E0277]: the type `[isize]` cannot be indexed by `i8`
@@ -16,6 +17,7 @@ LL | v[3i8];
1617 |
1718 = help: the trait `SliceIndex<[isize]>` is not implemented for `i8`
1819 = help: the trait `SliceIndex<[isize]>` is implemented for `usize`
20+ = help: ... for that trait implementation, expected `usize`, found `i8`
1921 = note: required for `Vec<isize>` to implement `Index<i8>`
2022
2123error[E0277]: the type `[isize]` cannot be indexed by `u32`
@@ -26,6 +28,7 @@ LL | v[3u32];
2628 |
2729 = help: the trait `SliceIndex<[isize]>` is not implemented for `u32`
2830 = help: the trait `SliceIndex<[isize]>` is implemented for `usize`
31+ = help: ... for that trait implementation, expected `usize`, found `u32`
2932 = note: required for `Vec<isize>` to implement `Index<u32>`
3033
3134error[E0277]: the type `[isize]` cannot be indexed by `i32`
@@ -36,6 +39,7 @@ LL | v[3i32];
3639 |
3740 = help: the trait `SliceIndex<[isize]>` is not implemented for `i32`
3841 = help: the trait `SliceIndex<[isize]>` is implemented for `usize`
42+ = help: ... for that trait implementation, expected `usize`, found `i32`
3943 = note: required for `Vec<isize>` to implement `Index<i32>`
4044
4145error[E0277]: the type `[u8]` cannot be indexed by `u8`
@@ -46,6 +50,7 @@ LL | s.as_bytes()[3u8];
4650 |
4751 = help: the trait `SliceIndex<[u8]>` is not implemented for `u8`
4852 = help: the trait `SliceIndex<[u8]>` is implemented for `usize`
53+ = help: ... for that trait implementation, expected `usize`, found `u8`
4954 = note: required for `[u8]` to implement `Index<u8>`
5055
5156error[E0277]: the type `[u8]` cannot be indexed by `i8`
@@ -56,6 +61,7 @@ LL | s.as_bytes()[3i8];
5661 |
5762 = help: the trait `SliceIndex<[u8]>` is not implemented for `i8`
5863 = help: the trait `SliceIndex<[u8]>` is implemented for `usize`
64+ = help: ... for that trait implementation, expected `usize`, found `i8`
5965 = note: required for `[u8]` to implement `Index<i8>`
6066
6167error[E0277]: the type `[u8]` cannot be indexed by `u32`
@@ -66,6 +72,7 @@ LL | s.as_bytes()[3u32];
6672 |
6773 = help: the trait `SliceIndex<[u8]>` is not implemented for `u32`
6874 = help: the trait `SliceIndex<[u8]>` is implemented for `usize`
75+ = help: ... for that trait implementation, expected `usize`, found `u32`
6976 = note: required for `[u8]` to implement `Index<u32>`
7077
7178error[E0277]: the type `[u8]` cannot be indexed by `i32`
@@ -76,6 +83,7 @@ LL | s.as_bytes()[3i32];
7683 |
7784 = help: the trait `SliceIndex<[u8]>` is not implemented for `i32`
7885 = help: the trait `SliceIndex<[u8]>` is implemented for `usize`
86+ = help: ... for that trait implementation, expected `usize`, found `i32`
7987 = note: required for `[u8]` to implement `Index<i32>`
8088
8189error: aborting due to 8 previous errors
0 commit comments