]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_allocation.rs
Fix wrong argument in autoderef process
[rust.git] / src / test / mir-opt / const_allocation.rs
1 // EMIT_MIR_FOR_EACH_BIT_WIDTH
2
3 static FOO: &[(Option<i32>, &[&str])] =
4     &[(None, &[]), (None, &["foo", "bar"]), (Some(42), &["meh", "mop", "möp"])];
5
6 // EMIT_MIR rustc.main.ConstProp.after.mir
7 fn main() {
8     FOO;
9 }