2022-08-02 17:44:25 -07:00
|
|
|
// unit-test: Derefer
|
2022-05-12 00:27:06 +03:00
|
|
|
// EMIT_MIR derefer_inline_test.main.Derefer.diff
|
2023-06-08 09:18:34 +02:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2022-05-12 00:27:06 +03:00
|
|
|
|
|
|
|
#[inline]
|
|
|
|
fn f() -> Box<u32> {
|
2023-02-27 13:07:44 +00:00
|
|
|
Box::new(0)
|
2022-05-12 00:27:06 +03:00
|
|
|
}
|
|
|
|
fn main() {
|
2023-02-27 13:07:44 +00:00
|
|
|
Box::new(f());
|
2022-05-12 00:27:06 +03:00
|
|
|
}
|