]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-eval/index_out_of_bounds_propagated.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[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 }