@@ -4,7 +4,6 @@ error[E0277]: the type `[isize]` cannot be indexed by `u8`
4
4
LL | v[3u8];
5
5
| ^^^ slice indices are of type `usize` or ranges of `usize`
6
6
|
7
- = help: the trait `SliceIndex<[isize]>` is not implemented for `u8`
8
7
= help: the trait `SliceIndex<[isize]>` is not implemented for `u8`
9
8
but it is implemented for `usize`
10
9
= help: for that trait implementation, expected `usize`, found `u8`
@@ -16,7 +15,6 @@ error[E0277]: the type `[isize]` cannot be indexed by `i8`
16
15
LL | v[3i8];
17
16
| ^^^ slice indices are of type `usize` or ranges of `usize`
18
17
|
19
- = help: the trait `SliceIndex<[isize]>` is not implemented for `i8`
20
18
= help: the trait `SliceIndex<[isize]>` is not implemented for `i8`
21
19
but it is implemented for `usize`
22
20
= help: for that trait implementation, expected `usize`, found `i8`
@@ -28,7 +26,6 @@ error[E0277]: the type `[isize]` cannot be indexed by `u32`
28
26
LL | v[3u32];
29
27
| ^^^^ slice indices are of type `usize` or ranges of `usize`
30
28
|
31
- = help: the trait `SliceIndex<[isize]>` is not implemented for `u32`
32
29
= help: the trait `SliceIndex<[isize]>` is not implemented for `u32`
33
30
but it is implemented for `usize`
34
31
= help: for that trait implementation, expected `usize`, found `u32`
@@ -40,7 +37,6 @@ error[E0277]: the type `[isize]` cannot be indexed by `i32`
40
37
LL | v[3i32];
41
38
| ^^^^ slice indices are of type `usize` or ranges of `usize`
42
39
|
43
- = help: the trait `SliceIndex<[isize]>` is not implemented for `i32`
44
40
= help: the trait `SliceIndex<[isize]>` is not implemented for `i32`
45
41
but it is implemented for `usize`
46
42
= help: for that trait implementation, expected `usize`, found `i32`
@@ -52,7 +48,6 @@ error[E0277]: the type `[u8]` cannot be indexed by `u8`
52
48
LL | s.as_bytes()[3u8];
53
49
| ^^^ slice indices are of type `usize` or ranges of `usize`
54
50
|
55
- = help: the trait `SliceIndex<[u8]>` is not implemented for `u8`
56
51
= help: the trait `SliceIndex<[u8]>` is not implemented for `u8`
57
52
but it is implemented for `usize`
58
53
= help: for that trait implementation, expected `usize`, found `u8`
@@ -64,7 +59,6 @@ error[E0277]: the type `[u8]` cannot be indexed by `i8`
64
59
LL | s.as_bytes()[3i8];
65
60
| ^^^ slice indices are of type `usize` or ranges of `usize`
66
61
|
67
- = help: the trait `SliceIndex<[u8]>` is not implemented for `i8`
68
62
= help: the trait `SliceIndex<[u8]>` is not implemented for `i8`
69
63
but it is implemented for `usize`
70
64
= help: for that trait implementation, expected `usize`, found `i8`
@@ -76,7 +70,6 @@ error[E0277]: the type `[u8]` cannot be indexed by `u32`
76
70
LL | s.as_bytes()[3u32];
77
71
| ^^^^ slice indices are of type `usize` or ranges of `usize`
78
72
|
79
- = help: the trait `SliceIndex<[u8]>` is not implemented for `u32`
80
73
= help: the trait `SliceIndex<[u8]>` is not implemented for `u32`
81
74
but it is implemented for `usize`
82
75
= help: for that trait implementation, expected `usize`, found `u32`
@@ -88,7 +81,6 @@ error[E0277]: the type `[u8]` cannot be indexed by `i32`
88
81
LL | s.as_bytes()[3i32];
89
82
| ^^^^ slice indices are of type `usize` or ranges of `usize`
90
83
|
91
- = help: the trait `SliceIndex<[u8]>` is not implemented for `i32`
92
84
= help: the trait `SliceIndex<[u8]>` is not implemented for `i32`
93
85
but it is implemented for `usize`
94
86
= help: for that trait implementation, expected `usize`, found `i32`
0 commit comments