]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/array-literal-index-oob.rs
Auto merge of #64546 - weiznich:bugfix/rfc-2451-rerebalance-tests, r=nikomatsakis
[rust.git] / src / test / ui / consts / array-literal-index-oob.rs
1 fn main() {
2     &{[1, 2, 3][4]};
3     //~^ ERROR index out of bounds
4     //~| ERROR reaching this expression at runtime will panic or abort
5 }