blob: 39f665402b025cf12918fba727f95bc93ecf6410 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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
|