]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/array_index.rs
Add #[const_trait] where needed in tests.
[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 }