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

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

10 lines
315 B
Plaintext
Raw Normal View History

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