]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/array_indexing.stderr
d2106d5f3a7316a1ea6cae60911ad28bf99e9618
[rust.git] / clippy_tests / examples / array_indexing.stderr
1 error: const index is out of bounds
2   --> array_indexing.rs:12:5
3    |
4 12 |     x[4];
5    |     ^^^^
6    |
7    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
8
9 error: const index is out of bounds
10   --> array_indexing.rs:13:5
11    |
12 13 |     x[1 << 3];
13    |     ^^^^^^^^^
14    |
15    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
16
17 error: range is out of bounds
18   --> array_indexing.rs:14:6
19    |
20 14 |     &x[1..5];
21    |      ^^^^^^^
22    |
23    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
24
25 error: range is out of bounds
26   --> array_indexing.rs:16:6
27    |
28 16 |     &x[0...4];
29    |      ^^^^^^^^
30    |
31    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
32
33 error: range is out of bounds
34   --> array_indexing.rs:17:6
35    |
36 17 |     &x[...4];
37    |      ^^^^^^^
38    |
39    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
40
41 error: range is out of bounds
42   --> array_indexing.rs:21:6
43    |
44 21 |     &x[5..];
45    |      ^^^^^^
46    |
47    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
48
49 error: range is out of bounds
50   --> array_indexing.rs:23:6
51    |
52 23 |     &x[..5];
53    |      ^^^^^^
54    |
55    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
56
57 error: indexing may panic
58   --> array_indexing.rs:26:5
59    |
60 26 |     y[0];
61    |     ^^^^
62    |
63    = note: `-D indexing-slicing` implied by `-D warnings`
64
65 error: slicing may panic
66   --> array_indexing.rs:27:6
67    |
68 27 |     &y[1..2];
69    |      ^^^^^^^
70    |
71    = note: `-D indexing-slicing` implied by `-D warnings`
72
73 error: slicing may panic
74   --> array_indexing.rs:29:6
75    |
76 29 |     &y[0...4];
77    |      ^^^^^^^^
78    |
79    = note: `-D indexing-slicing` implied by `-D warnings`
80
81 error: slicing may panic
82   --> array_indexing.rs:30:6
83    |
84 30 |     &y[...4];
85    |      ^^^^^^^
86    |
87    = note: `-D indexing-slicing` implied by `-D warnings`
88
89 error: const index is out of bounds
90   --> array_indexing.rs:33:5
91    |
92 33 |     empty[0];
93    |     ^^^^^^^^
94    |
95    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
96
97 error: range is out of bounds
98   --> array_indexing.rs:34:6
99    |
100 34 |     &empty[1..5];
101    |      ^^^^^^^^^^^
102    |
103    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
104
105 error: range is out of bounds
106   --> array_indexing.rs:35:6
107    |
108 35 |     &empty[0...4];
109    |      ^^^^^^^^^^^^
110    |
111    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
112
113 error: range is out of bounds
114   --> array_indexing.rs:36:6
115    |
116 36 |     &empty[...4];
117    |      ^^^^^^^^^^^
118    |
119    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
120
121 error: range is out of bounds
122   --> array_indexing.rs:40:6
123    |
124 40 |     &empty[0...0];
125    |      ^^^^^^^^^^^^
126    |
127    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
128
129 error: range is out of bounds
130   --> array_indexing.rs:41:6
131    |
132 41 |     &empty[...0];
133    |      ^^^^^^^^^^^
134    |
135    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
136
137 error: range is out of bounds
138   --> array_indexing.rs:43:6
139    |
140 43 |     &empty[1..];
141    |      ^^^^^^^^^^
142    |
143    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
144
145 error: range is out of bounds
146   --> array_indexing.rs:44:6
147    |
148 44 |     &empty[..4];
149    |      ^^^^^^^^^^
150    |
151    = note: `-D out-of-bounds-indexing` implied by `-D warnings`
152
153 error: aborting due to previous error(s)
154
155 error: Could not compile `clippy_tests`.
156
157 To learn more, run the command again with --verbose.