mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
9 lines
197 B
Rust
9 lines
197 B
Rust
// unit-test: ConstProp
|
|
// compile-flags: -Zmir-enable-passes=+InstCombine
|
|
// EMIT_MIR_FOR_EACH_BIT_WIDTH
|
|
|
|
// EMIT_MIR slice_len.main.ConstProp.diff
|
|
fn main() {
|
|
(&[1u32, 2, 3] as &[u32])[1];
|
|
}
|