a7813a04 XL |
1 | const A: &'static [i32] = &[]; |
2 | const B: i32 = (&A)[1]; |
1b1a35ee |
3 | //~^ index out of bounds: the length is 0 but the index is 1 |
2b03887a |
4 | //~| ERROR evaluation of constant value failed |
223e47cc |
5 | |
92a42be0 SL |
6 | fn main() { |
7 | let _ = B; |
8 | } |