]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/array_index.rs
Rollup merge of #100336 - fee1-dead-contrib:fix-wf-const-trait, r=oli-obk
[rust.git] / src / test / 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 }