rust/tests/ui/consts/const-eval/index_out_of_bounds_propagated.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
292 B
Plaintext
Raw Normal View History

error: this operation will panic at runtime
--> $DIR/index_out_of_bounds_propagated.rs:5:5
2018-06-04 11:32:06 -05:00
|
2019-03-09 06:03:44 -06:00
LL | array[1];
| ^^^^^^^^ index out of bounds: the length is 1 but the index is 1
2018-06-04 11:32:06 -05:00
|
2020-02-18 15:49:47 -06:00
= note: `#[deny(unconditional_panic)]` on by default
2018-06-04 11:32:06 -05:00
error: aborting due to previous error