|
1 | 1 | error[E0277]: the type `[isize]` cannot be indexed by `u8` |
2 | | - --> $DIR/integral-indexing.rs:6:5 |
| 2 | + --> $DIR/integral-indexing.rs:6:7 |
3 | 3 | | |
4 | 4 | LL | v[3u8]; |
5 | | - | ^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 5 | + | ^^^ slice indices are of type `usize` or ranges of `usize` |
6 | 6 | | |
7 | 7 | = help: the trait `SliceIndex<[isize]>` is not implemented for `u8` |
8 | 8 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
9 | 9 | = note: required because of the requirements on the impl of `Index<u8>` for `Vec<isize>` |
10 | 10 |
|
11 | 11 | error[E0277]: the type `[isize]` cannot be indexed by `i8` |
12 | | - --> $DIR/integral-indexing.rs:7:5 |
| 12 | + --> $DIR/integral-indexing.rs:7:7 |
13 | 13 | | |
14 | 14 | LL | v[3i8]; |
15 | | - | ^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 15 | + | ^^^ slice indices are of type `usize` or ranges of `usize` |
16 | 16 | | |
17 | 17 | = help: the trait `SliceIndex<[isize]>` is not implemented for `i8` |
18 | 18 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
19 | 19 | = note: required because of the requirements on the impl of `Index<i8>` for `Vec<isize>` |
20 | 20 |
|
21 | 21 | error[E0277]: the type `[isize]` cannot be indexed by `u32` |
22 | | - --> $DIR/integral-indexing.rs:8:5 |
| 22 | + --> $DIR/integral-indexing.rs:8:7 |
23 | 23 | | |
24 | 24 | LL | v[3u32]; |
25 | | - | ^^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 25 | + | ^^^^ slice indices are of type `usize` or ranges of `usize` |
26 | 26 | | |
27 | 27 | = help: the trait `SliceIndex<[isize]>` is not implemented for `u32` |
28 | 28 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
29 | 29 | = note: required because of the requirements on the impl of `Index<u32>` for `Vec<isize>` |
30 | 30 |
|
31 | 31 | error[E0277]: the type `[isize]` cannot be indexed by `i32` |
32 | | - --> $DIR/integral-indexing.rs:9:5 |
| 32 | + --> $DIR/integral-indexing.rs:9:7 |
33 | 33 | | |
34 | 34 | LL | v[3i32]; |
35 | | - | ^^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 35 | + | ^^^^ slice indices are of type `usize` or ranges of `usize` |
36 | 36 | | |
37 | 37 | = help: the trait `SliceIndex<[isize]>` is not implemented for `i32` |
38 | 38 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
39 | 39 | = note: required because of the requirements on the impl of `Index<i32>` for `Vec<isize>` |
40 | 40 |
|
41 | 41 | error[E0277]: the type `[u8]` cannot be indexed by `u8` |
42 | | - --> $DIR/integral-indexing.rs:12:5 |
| 42 | + --> $DIR/integral-indexing.rs:12:18 |
43 | 43 | | |
44 | 44 | LL | s.as_bytes()[3u8]; |
45 | | - | ^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 45 | + | ^^^ slice indices are of type `usize` or ranges of `usize` |
46 | 46 | | |
47 | 47 | = help: the trait `SliceIndex<[u8]>` is not implemented for `u8` |
48 | 48 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
49 | 49 | = note: required because of the requirements on the impl of `Index<u8>` for `[u8]` |
50 | 50 |
|
51 | 51 | error[E0277]: the type `[u8]` cannot be indexed by `i8` |
52 | | - --> $DIR/integral-indexing.rs:13:5 |
| 52 | + --> $DIR/integral-indexing.rs:13:18 |
53 | 53 | | |
54 | 54 | LL | s.as_bytes()[3i8]; |
55 | | - | ^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 55 | + | ^^^ slice indices are of type `usize` or ranges of `usize` |
56 | 56 | | |
57 | 57 | = help: the trait `SliceIndex<[u8]>` is not implemented for `i8` |
58 | 58 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
59 | 59 | = note: required because of the requirements on the impl of `Index<i8>` for `[u8]` |
60 | 60 |
|
61 | 61 | error[E0277]: the type `[u8]` cannot be indexed by `u32` |
62 | | - --> $DIR/integral-indexing.rs:14:5 |
| 62 | + --> $DIR/integral-indexing.rs:14:18 |
63 | 63 | | |
64 | 64 | LL | s.as_bytes()[3u32]; |
65 | | - | ^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 65 | + | ^^^^ slice indices are of type `usize` or ranges of `usize` |
66 | 66 | | |
67 | 67 | = help: the trait `SliceIndex<[u8]>` is not implemented for `u32` |
68 | 68 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
69 | 69 | = note: required because of the requirements on the impl of `Index<u32>` for `[u8]` |
70 | 70 |
|
71 | 71 | error[E0277]: the type `[u8]` cannot be indexed by `i32` |
72 | | - --> $DIR/integral-indexing.rs:15:5 |
| 72 | + --> $DIR/integral-indexing.rs:15:18 |
73 | 73 | | |
74 | 74 | LL | s.as_bytes()[3i32]; |
75 | | - | ^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` |
| 75 | + | ^^^^ slice indices are of type `usize` or ranges of `usize` |
76 | 76 | | |
77 | 77 | = help: the trait `SliceIndex<[u8]>` is not implemented for `i32` |
78 | 78 | = help: the trait `SliceIndex<[T]>` is implemented for `usize` |
|
0 commit comments