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
|
|
|
|
|
|
|
|
#[inline]
|
|
|
|
fn f() -> Box<u32> {
|
2023-02-27 07:07:44 -06:00
|
|
|
Box::new(0)
|
2022-05-11 16:27:06 -05:00
|
|
|
}
|
|
|
|
fn main() {
|
2023-02-27 07:07:44 -06:00
|
|
|
Box::new(f());
|
2022-05-11 16:27:06 -05:00
|
|
|
}
|