]> git.proxmox.com Git - rustc.git/blame - src/test/ui/integral-indexing.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / integral-indexing.stderr
CommitLineData
9fa01778 1error[E0277]: the type `[isize]` cannot be indexed by `u8`
0731742a 2 --> $DIR/integral-indexing.rs:6:5
b7449926 3 |
532ac7d7 4LL | v[3u8];
b7449926
XL
5 | ^^^^^^ slice indices are of type `usize` or ranges of `usize`
6 |
1b1a35ee
XL
7 = help: the trait `SliceIndex<[isize]>` is not implemented for `u8`
8 = note: required because of the requirements on the impl of `Index<u8>` for `Vec<isize>`
b7449926 9
9fa01778 10error[E0277]: the type `[isize]` cannot be indexed by `i8`
0731742a 11 --> $DIR/integral-indexing.rs:7:5
b7449926 12 |
532ac7d7 13LL | v[3i8];
b7449926
XL
14 | ^^^^^^ slice indices are of type `usize` or ranges of `usize`
15 |
1b1a35ee
XL
16 = help: the trait `SliceIndex<[isize]>` is not implemented for `i8`
17 = note: required because of the requirements on the impl of `Index<i8>` for `Vec<isize>`
b7449926 18
9fa01778 19error[E0277]: the type `[isize]` cannot be indexed by `u32`
0731742a 20 --> $DIR/integral-indexing.rs:8:5
b7449926 21 |
532ac7d7 22LL | v[3u32];
b7449926
XL
23 | ^^^^^^^ slice indices are of type `usize` or ranges of `usize`
24 |
1b1a35ee
XL
25 = help: the trait `SliceIndex<[isize]>` is not implemented for `u32`
26 = note: required because of the requirements on the impl of `Index<u32>` for `Vec<isize>`
b7449926 27
9fa01778 28error[E0277]: the type `[isize]` cannot be indexed by `i32`
0731742a 29 --> $DIR/integral-indexing.rs:9:5
b7449926 30 |
532ac7d7 31LL | v[3i32];
b7449926
XL
32 | ^^^^^^^ slice indices are of type `usize` or ranges of `usize`
33 |
1b1a35ee
XL
34 = help: the trait `SliceIndex<[isize]>` is not implemented for `i32`
35 = note: required because of the requirements on the impl of `Index<i32>` for `Vec<isize>`
b7449926 36
9fa01778 37error[E0277]: the type `[u8]` cannot be indexed by `u8`
0731742a 38 --> $DIR/integral-indexing.rs:12:5
b7449926 39 |
532ac7d7 40LL | s.as_bytes()[3u8];
b7449926
XL
41 | ^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
42 |
1b1a35ee
XL
43 = help: the trait `SliceIndex<[u8]>` is not implemented for `u8`
44 = note: required because of the requirements on the impl of `Index<u8>` for `[u8]`
b7449926 45
9fa01778 46error[E0277]: the type `[u8]` cannot be indexed by `i8`
0731742a 47 --> $DIR/integral-indexing.rs:13:5
b7449926 48 |
532ac7d7 49LL | s.as_bytes()[3i8];
b7449926
XL
50 | ^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
51 |
1b1a35ee
XL
52 = help: the trait `SliceIndex<[u8]>` is not implemented for `i8`
53 = note: required because of the requirements on the impl of `Index<i8>` for `[u8]`
b7449926 54
9fa01778 55error[E0277]: the type `[u8]` cannot be indexed by `u32`
0731742a 56 --> $DIR/integral-indexing.rs:14:5
b7449926 57 |
532ac7d7 58LL | s.as_bytes()[3u32];
b7449926
XL
59 | ^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
60 |
1b1a35ee
XL
61 = help: the trait `SliceIndex<[u8]>` is not implemented for `u32`
62 = note: required because of the requirements on the impl of `Index<u32>` for `[u8]`
b7449926 63
9fa01778 64error[E0277]: the type `[u8]` cannot be indexed by `i32`
0731742a 65 --> $DIR/integral-indexing.rs:15:5
b7449926 66 |
532ac7d7 67LL | s.as_bytes()[3i32];
b7449926
XL
68 | ^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize`
69 |
1b1a35ee
XL
70 = help: the trait `SliceIndex<[u8]>` is not implemented for `i32`
71 = note: required because of the requirements on the impl of `Index<i32>` for `[u8]`
b7449926
XL
72
73error: aborting due to 8 previous errors
74
75For more information about this error, try `rustc --explain E0277`.