Skip to content

Commit 2db1a2a

Browse files
authored
Fix unstable associated type bounds
1 parent 4baffe4 commit 2db1a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numeric/impl_float_maths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ macro_rules! binary_ops_array {
5858
$($(#[$meta])*
5959
#[must_use = "method returns a new array and does not mutate the original value"]
6060
pub fn $fn_name<P>(&self, rhs: P) -> Array<A, D>
61-
where P: $crate::IntoNdProducer<Dim = D, Item: Borrow<$ty>> {
61+
where P: $crate::IntoNdProducer<Dim = D>, <P as $crate::IntoNdProducer>::Item: Borrow<$ty> {
6262
$crate::Zip::from(self).and(rhs).map_collect(|a, b| A::$fn_use(*a, *b.borrow()))
6363
})+
6464
};

0 commit comments

Comments
 (0)