]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/issue_78192.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / mir-opt / issue_78192.rs
1 // compile-flags: -Zmir-opt-level=1 -Zinline-mir
2 pub fn f<T>(a: &T) -> *const T {
3     let b: &*const T = &(a as *const T);
4     *b
5 }
6
7 fn main() {
8     f(&2);
9 }
10
11 // EMIT_MIR issue_78192.f.InstCombine.diff