@@ -6,6 +6,7 @@ LL | v[3u8];
6
6
|
7
7
= help: the trait `SliceIndex<[isize]>` is not implemented for `u8`
8
8
= help: the trait `SliceIndex<[isize]>` is implemented for `usize`
9
+ = help: for that trait implementation, expected `usize`, found `u8`
9
10
= note: required for `Vec<isize>` to implement `Index<u8>`
10
11
11
12
error[E0277]: the type `[isize]` cannot be indexed by `i8`
@@ -16,6 +17,7 @@ LL | v[3i8];
16
17
|
17
18
= help: the trait `SliceIndex<[isize]>` is not implemented for `i8`
18
19
= help: the trait `SliceIndex<[isize]>` is implemented for `usize`
20
+ = help: for that trait implementation, expected `usize`, found `i8`
19
21
= note: required for `Vec<isize>` to implement `Index<i8>`
20
22
21
23
error[E0277]: the type `[isize]` cannot be indexed by `u32`
@@ -26,6 +28,7 @@ LL | v[3u32];
26
28
|
27
29
= help: the trait `SliceIndex<[isize]>` is not implemented for `u32`
28
30
= help: the trait `SliceIndex<[isize]>` is implemented for `usize`
31
+ = help: for that trait implementation, expected `usize`, found `u32`
29
32
= note: required for `Vec<isize>` to implement `Index<u32>`
30
33
31
34
error[E0277]: the type `[isize]` cannot be indexed by `i32`
@@ -36,6 +39,7 @@ LL | v[3i32];
36
39
|
37
40
= help: the trait `SliceIndex<[isize]>` is not implemented for `i32`
38
41
= help: the trait `SliceIndex<[isize]>` is implemented for `usize`
42
+ = help: for that trait implementation, expected `usize`, found `i32`
39
43
= note: required for `Vec<isize>` to implement `Index<i32>`
40
44
41
45
error[E0277]: the type `[u8]` cannot be indexed by `u8`
@@ -46,6 +50,7 @@ LL | s.as_bytes()[3u8];
46
50
|
47
51
= help: the trait `SliceIndex<[u8]>` is not implemented for `u8`
48
52
= help: the trait `SliceIndex<[u8]>` is implemented for `usize`
53
+ = help: for that trait implementation, expected `usize`, found `u8`
49
54
= note: required for `[u8]` to implement `Index<u8>`
50
55
51
56
error[E0277]: the type `[u8]` cannot be indexed by `i8`
@@ -56,6 +61,7 @@ LL | s.as_bytes()[3i8];
56
61
|
57
62
= help: the trait `SliceIndex<[u8]>` is not implemented for `i8`
58
63
= help: the trait `SliceIndex<[u8]>` is implemented for `usize`
64
+ = help: for that trait implementation, expected `usize`, found `i8`
59
65
= note: required for `[u8]` to implement `Index<i8>`
60
66
61
67
error[E0277]: the type `[u8]` cannot be indexed by `u32`
@@ -66,6 +72,7 @@ LL | s.as_bytes()[3u32];
66
72
|
67
73
= help: the trait `SliceIndex<[u8]>` is not implemented for `u32`
68
74
= help: the trait `SliceIndex<[u8]>` is implemented for `usize`
75
+ = help: for that trait implementation, expected `usize`, found `u32`
69
76
= note: required for `[u8]` to implement `Index<u32>`
70
77
71
78
error[E0277]: the type `[u8]` cannot be indexed by `i32`
@@ -76,6 +83,7 @@ LL | s.as_bytes()[3i32];
76
83
|
77
84
= help: the trait `SliceIndex<[u8]>` is not implemented for `i32`
78
85
= help: the trait `SliceIndex<[u8]>` is implemented for `usize`
86
+ = help: for that trait implementation, expected `usize`, found `i32`
79
87
= note: required for `[u8]` to implement `Index<i32>`
80
88
81
89
error: aborting due to 8 previous errors
0 commit comments