summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/inline/inline_box_fn.rs
blob: 348f0e77f92a4af9fbf5bb7c7580afb7c0ed0719 (plain)
1
2
3
4
5
6
7
8
// 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);
}