aboutsummaryrefslogtreecommitdiff
path: root/tests/langerrors/const_index.zc
blob: 03e927bb93cee278c08c67be28d2e36f6c77804c (plain) (blame)
1
2
// expect: the index is out of range for this array
fn main() { [4]int a; a[4] = 1; return 0; }