1 error: this constant cannot be used
2 --> $DIR/array_const_index-0.rs:12:1
4 LL | const B: i32 = (&A)[1];
5 | ^^^^^^^^^^^^^^^-------^
7 | index out of bounds: the len is 0 but the index is 1
9 = note: #[deny(const_err)] on by default
11 error: aborting due to previous error