2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
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
|
|
|
|
2023-05-06 22:20:58 -05:00
|
|
|
// EMIT_MIR issue_78192.f.InstSimplify.diff
|