mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
12 lines
202 B
Rust
12 lines
202 B
Rust
// 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
|