diff --git a/lib/runtime-core/src/typed_func.rs b/lib/runtime-core/src/typed_func.rs index 9de9d40e2e3..f0c22c31d1b 100644 --- a/lib/runtime-core/src/typed_func.rs +++ b/lib/runtime-core/src/typed_func.rs @@ -430,7 +430,7 @@ macro_rules! impl_traits { $( $x: WasmExternType, )* Rets: WasmTypeList, Trap: TrapEarly, - FN: Fn(&mut vm::Ctx $( , $x )*) -> Trap + 'static, + FN: Fn(&mut vm::Ctx $( , $x )*) -> Trap + 'static + Send, { #[allow(non_snake_case)] fn to_raw(self) -> (NonNull, Option>) { @@ -545,7 +545,7 @@ macro_rules! impl_traits { $( $x: WasmExternType, )* Rets: WasmTypeList, Trap: TrapEarly, - FN: Fn($( $x, )*) -> Trap + 'static, + FN: Fn($( $x, )*) -> Trap + 'static + Send, { #[allow(non_snake_case)] fn to_raw(self) -> (NonNull, Option>) {