rust/tests/ui/array-slice-vec/array_const_index-1.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
311 B
Plaintext
Raw Normal View History

2022-09-21 11:05:20 +00:00
error[E0080]: evaluation of constant value failed
--> $DIR/array_const_index-1.rs:2:16
2018-08-08 12:28:26 +00:00
|
LL | const B: i32 = A[1];
2022-09-21 11:05:20 +00:00
| ^^^^ index out of bounds: the length is 0 but the index is 1
2018-08-08 12:28:26 +00:00
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
2022-09-21 11:05:20 +00:00
For more information about this error, try `rustc --explain E0080`.