2021-11-06 09:56:29 -05:00
|
|
|
// compile-flags: -Zmir-opt-level=1 -Zinline-mir
|
2020-10-22 15:22:17 -05: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 09:56:29 -05:00
|
|
|
|
|
|
|
// EMIT_MIR issue_78192.f.InstCombine.diff
|