1 warning: this operation will panic at runtime
2 --> $DIR/array-literal-index-oob.rs:7:8
4 LL | &{ [1, 2, 3][4] };
5 | ^^^^^^^^^^^^ index out of bounds: the length is 3 but the index is 4
7 note: the lint level is defined here
8 --> $DIR/array-literal-index-oob.rs:4:20
10 LL | #![warn(const_err, unconditional_panic)]
13 warning: 1 warning emitted