mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
11 lines
240 B
Rust
11 lines
240 B
Rust
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
//@ test-mir-pass: Inline
|
|
//@ compile-flags: --crate-type=lib
|
|
|
|
// EMIT_MIR inline_box_fn.call.Inline.diff
|
|
fn call(x: Box<dyn Fn(i32)>) {
|
|
// CHECK-LABEL: fn call(
|
|
// CHECK-NOT: inlined
|
|
x(1);
|
|
}
|