]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/index_out_of_bounds_propagated.stderr
Rollup merge of #101655 - dns2utf8:box_docs, r=dtolnay
[rust.git] / src / test / ui / consts / const-eval / index_out_of_bounds_propagated.stderr
1 error: this operation will panic at runtime
2   --> $DIR/index_out_of_bounds_propagated.rs:5:5
3    |
4 LL |     array[1];
5    |     ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
6    |
7    = note: `#[deny(unconditional_panic)]` on by default
8
9 error: aborting due to previous error
10