1
1
error[E0277]: the type `[isize]` cannot be indexed by `u8`
2
- --> $DIR/integral-indexing .rs:6 :7
2
+ --> $DIR/indexing- integral-types .rs:12 :7
3
3
|
4
4
LL | v[3u8];
5
5
| ^^^ slice indices are of type `usize` or ranges of `usize`
@@ -11,7 +11,7 @@ LL | v[3u8];
11
11
= note: required for `Vec<isize>` to implement `Index<u8>`
12
12
13
13
error[E0277]: the type `[isize]` cannot be indexed by `i8`
14
- --> $DIR/integral-indexing .rs:7 :7
14
+ --> $DIR/indexing- integral-types .rs:13 :7
15
15
|
16
16
LL | v[3i8];
17
17
| ^^^ slice indices are of type `usize` or ranges of `usize`
@@ -23,7 +23,7 @@ LL | v[3i8];
23
23
= note: required for `Vec<isize>` to implement `Index<i8>`
24
24
25
25
error[E0277]: the type `[isize]` cannot be indexed by `u32`
26
- --> $DIR/integral-indexing .rs:8 :7
26
+ --> $DIR/indexing- integral-types .rs:14 :7
27
27
|
28
28
LL | v[3u32];
29
29
| ^^^^ slice indices are of type `usize` or ranges of `usize`
@@ -35,7 +35,7 @@ LL | v[3u32];
35
35
= note: required for `Vec<isize>` to implement `Index<u32>`
36
36
37
37
error[E0277]: the type `[isize]` cannot be indexed by `i32`
38
- --> $DIR/integral-indexing .rs:9 :7
38
+ --> $DIR/indexing- integral-types .rs:15 :7
39
39
|
40
40
LL | v[3i32];
41
41
| ^^^^ slice indices are of type `usize` or ranges of `usize`
@@ -47,7 +47,7 @@ LL | v[3i32];
47
47
= note: required for `Vec<isize>` to implement `Index<i32>`
48
48
49
49
error[E0277]: the type `[u8]` cannot be indexed by `u8`
50
- --> $DIR/integral-indexing .rs:12 :18
50
+ --> $DIR/indexing- integral-types .rs:21 :18
51
51
|
52
52
LL | s.as_bytes()[3u8];
53
53
| ^^^ slice indices are of type `usize` or ranges of `usize`
@@ -59,7 +59,7 @@ LL | s.as_bytes()[3u8];
59
59
= note: required for `[u8]` to implement `Index<u8>`
60
60
61
61
error[E0277]: the type `[u8]` cannot be indexed by `i8`
62
- --> $DIR/integral-indexing .rs:13 :18
62
+ --> $DIR/indexing- integral-types .rs:22 :18
63
63
|
64
64
LL | s.as_bytes()[3i8];
65
65
| ^^^ slice indices are of type `usize` or ranges of `usize`
@@ -71,7 +71,7 @@ LL | s.as_bytes()[3i8];
71
71
= note: required for `[u8]` to implement `Index<i8>`
72
72
73
73
error[E0277]: the type `[u8]` cannot be indexed by `u32`
74
- --> $DIR/integral-indexing .rs:14 :18
74
+ --> $DIR/indexing- integral-types .rs:23 :18
75
75
|
76
76
LL | s.as_bytes()[3u32];
77
77
| ^^^^ slice indices are of type `usize` or ranges of `usize`
@@ -83,7 +83,7 @@ LL | s.as_bytes()[3u32];
83
83
= note: required for `[u8]` to implement `Index<u32>`
84
84
85
85
error[E0277]: the type `[u8]` cannot be indexed by `i32`
86
- --> $DIR/integral-indexing .rs:15 :18
86
+ --> $DIR/indexing- integral-types .rs:24 :18
87
87
|
88
88
LL | s.as_bytes()[3i32];
89
89
| ^^^^ slice indices are of type `usize` or ranges of `usize`
0 commit comments