2017-05-17 12:19:44 +00:00
|
|
|
error: const index is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:12:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
12 | x[4];
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: const index is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:13:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
13 | x[1 << 3];
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:14:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
14 | &x[1..5];
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:16:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
16 | &x[0...4];
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:17:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
17 | &x[...4];
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:21:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
21 | &x[5..];
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:23:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
23 | &x[..5];
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: indexing may panic
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:26:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
26 | y[0];
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: `-D indexing-slicing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: slicing may panic
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:27:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
27 | &y[1..2];
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D indexing-slicing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: slicing may panic
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:29:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
29 | &y[0...4];
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D indexing-slicing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: slicing may panic
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:30:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
30 | &y[...4];
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D indexing-slicing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: const index is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:33:5
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
33 | empty[0];
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:34:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
34 | &empty[1..5];
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:35:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
35 | &empty[0...4];
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:36:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
36 | &empty[...4];
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:40:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
40 | &empty[0...0];
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:41:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
41 | &empty[...0];
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:43:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
43 | &empty[1..];
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: range is out of bounds
|
2017-05-17 15:51:35 +00:00
|
|
|
--> array_indexing.rs:44:6
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
44 | &empty[..4];
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D out-of-bounds-indexing` implied by `-D warnings`
|
|
|
|
|
2017-05-26 07:21:54 +00:00
|
|
|
error: aborting due to previous error(s)
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|