diff --git a/src/zip/mod.rs b/src/zip/mod.rs index 182ab7232..2b6612b54 100644 --- a/src/zip/mod.rs +++ b/src/zip/mod.rs @@ -1085,7 +1085,7 @@ macro_rules! map_impl { // For generic elements, use a proxy that counts the number of filled elements, // and can drop the right number of elements on unwinding unsafe { - PartialArray::scope(output.view_mut(), |partial| { + PartialArray::scope(output.view_mut(), move |partial| { debug_assert_eq!(partial.layout().tendency() >= 0, self.layout_tendency >= 0); self.apply_assign_into(partial, f); });