granite-rust/src/test/mir-opt/const_allocation.rs

10 lines
221 B
Rust
Raw Normal View History

2020-03-11 11:49:00 +01:00
// EMIT_MIR_FOR_EACH_BIT_WIDTH
static FOO: &[(Option<i32>, &[&str])] =
&[(None, &[]), (None, &["foo", "bar"]), (Some(42), &["meh", "mop", "möp"])];
// EMIT_MIR rustc.main.ConstProp.after.mir
fn main() {
FOO;
}