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

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

7 lines
116 B
Rust
Raw Normal View History

// build-fail
2018-06-04 11:32:06 -05:00
fn main() {
let array = [std::env::args().len()];
array[1]; //~ ERROR operation will panic
2018-06-04 11:32:06 -05:00
}