2022-08-02 19:44:25 -05:00
|
|
|
// unit-test: Derefer
|
2022-05-11 16:27:06 -05:00
|
|
|
// EMIT_MIR derefer_inline_test.main.Derefer.diff
|
|
|
|
// ignore-wasm32 compiled with panic=abort by default
|
|
|
|
|
|
|
|
#![feature(box_syntax)]
|
|
|
|
#[inline]
|
|
|
|
fn f() -> Box<u32> {
|
|
|
|
box 0
|
|
|
|
}
|
|
|
|
fn main() {
|
|
|
|
box f();
|
|
|
|
}
|