rust/tests/mir-opt/inline/inline_box_fn.rs

9 lines
179 B
Rust
Raw Normal View History

2023-07-22 11:22:21 -05:00
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: Inline
// compile-flags: --crate-type=lib
// EMIT_MIR inline_box_fn.call.Inline.diff
fn call(x: Box<dyn Fn(i32)>) {
x(1);
}