]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-eval/index_out_of_bounds_propagated.rs
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / ui / consts / const-eval / index_out_of_bounds_propagated.rs
1 // build-fail
2
3 fn main() {
4     let array = [std::env::args().len()];
5     array[1]; //~ ERROR operation will panic
6 }