2019-06-06 14:23:17 -05:00
|
|
|
error: index out of bounds: the len is 3 but the index is 4
|
2019-12-13 21:28:32 -06:00
|
|
|
--> $DIR/array-literal-index-oob.rs:4:7
|
2019-06-06 14:23:17 -05:00
|
|
|
|
|
|
|
|
LL | &{[1, 2, 3][4]};
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
2019-07-16 15:17:38 -05:00
|
|
|
= note: `#[deny(const_err)]` on by default
|
2019-06-06 14:23:17 -05:00
|
|
|
|
|
|
|
error: reaching this expression at runtime will panic or abort
|
2019-12-13 21:28:32 -06:00
|
|
|
--> $DIR/array-literal-index-oob.rs:4:7
|
2019-06-06 14:23:17 -05:00
|
|
|
|
|
|
|
|
LL | &{[1, 2, 3][4]};
|
|
|
|
| --^^^^^^^^^^^^-
|
|
|
|
| |
|
2019-12-01 05:08:05 -06:00
|
|
|
| indexing out of bounds: the len is 3 but the index is 4
|
2019-06-06 14:23:17 -05:00
|
|
|
|
2019-08-04 21:23:32 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2019-06-06 14:23:17 -05:00
|
|
|
|