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