mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
13 lines
222 B
Rust
13 lines
222 B
Rust
// skip-filecheck
|
|
//@ 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.InstSimplify.diff
|