summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-eval/index_out_of_bounds_propagated.rs
blob: 608e6e112a10be5f4ad7657af9bd3e0958de17a6 (plain)
1
2
3
4
5
6
// build-fail

fn main() {
    let array = [std::env::args().len()];
    array[1]; //~ ERROR operation will panic
}