rust/tests/mir-opt/issue_78192.rs
2023-01-11 09:32:08 +00:00

12 lines
202 B
Rust

// compile-flags: -Zmir-opt-level=1 -Zinline-mir
pub fn f<T>(a: &T) -> *const T {
let b: &*const T = &(a as *const T);
*b
}
fn main() {
f(&2);
}
// EMIT_MIR issue_78192.f.InstCombine.diff