1 error: any use of this value will cause an error
2 --> $DIR/array_const_index-1.rs:12:1
4 LL | const B: i32 = A[1];
7 | index out of bounds: the len is 0 but the index is 1
9 = note: #[deny(const_err)] on by default
11 error: any use of this value will cause an error
12 --> $DIR/array_const_index-1.rs:12:1
14 LL | const B: i32 = A[1];
15 | ^^^^^^^^^^^^^^^----^
17 | index out of bounds: the len is 0 but the index is 1
19 error[E0080]: erroneous constant used
20 --> $DIR/array_const_index-1.rs:18:13
22 LL | let _ = B; //~ ERROR erroneous constant used
23 | ^ referenced constant has errors
25 error: aborting due to 3 previous errors
27 For more information about this error, try `rustc --explain E0080`.