]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/issue_78192.rs
Rollup merge of #104036 - compiler-errors:option-sugg, r=petrochenkov
[rust.git] / src / test / 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