]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/array_index.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / mir-opt / const_prop / array_index.rs
1 // unit-test: ConstProp
2 // EMIT_MIR_FOR_EACH_BIT_WIDTH
3
4 // EMIT_MIR array_index.main.ConstProp.diff
5 fn main() {
6     let x: u32 = [0, 1, 2, 3][2];
7 }