]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/index_out_of_bounds_propagated.stderr
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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