2021-11-06 14:56:29 +00:00
|
|
|
// compile-flags: -Zmir-opt-level=1 -Zinline-mir
|
2020-10-22 20:22:17 +00:00
|
|
|
pub fn f<T>(a: &T) -> *const T {
|
|
|
|
let b: &*const T = &(a as *const T);
|
|
|
|
*b
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
f(&2);
|
|
|
|
}
|
2021-11-06 14:56:29 +00:00
|
|
|
|
|
|
|
// EMIT_MIR issue_78192.f.InstCombine.diff
|