]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/index_out_of_bounds_propagated.rs
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[rust.git] / src / test / 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 }