2023-07-22 11:22:21 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
2023-06-29 22:09:02 -05:00
|
|
|
//@ compile-flags: -Zmir-enable-passes=+Inline --crate-type=lib
|
|
|
|
|
|
|
|
#![feature(fn_traits, tuple_trait, unboxed_closures)]
|
|
|
|
|
|
|
|
use std::marker::Tuple;
|
|
|
|
|
|
|
|
// EMIT_MIR dont_ice_on_generic_rust_call.call.Inline.diff
|
|
|
|
pub fn call<I: Tuple>(mut mock: Box<dyn FnMut<I, Output = ()>>, input: I) {
|
2023-10-20 13:11:37 -05:00
|
|
|
// CHECK-LABEL: fn call(
|
2023-10-22 11:27:43 -05:00
|
|
|
// CHECK-NOT: inlined
|
2023-06-29 22:09:02 -05:00
|
|
|
mock.call_mut(input)
|
|
|
|
}
|