rust/tests/mir-opt/const_prop/ref_deref_project.rs
2023-12-02 20:58:45 +00:00

11 lines
260 B
Rust

// This does not currently propagate (#67862)
// unit-test: ConstProp
// EMIT_MIR ref_deref_project.main.ConstProp.diff
fn main() {
// CHECK-LABEL: fn main(
// CHECK: debug a => [[a:_.*]];
// CHECK: [[a]] = (*{{_.*}});
let a = *(&(4, 5).1);
}