10 lines
235 B
Rust
10 lines
235 B
Rust
// unit-test: ConstProp
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
// compile-flags: -Zmir-enable-passes=+NormalizeArrayLen
|
|
// EMIT_MIR_FOR_EACH_BIT_WIDTH
|
|
|
|
// EMIT_MIR repeat.main.ConstProp.diff
|
|
fn main() {
|
|
let x: u32 = [42; 8][2] + 0;
|
|
}
|