From ca22c1ee17f128509233badd2aa966e8624264fb Mon Sep 17 00:00:00 2001 From: Daniel Vainsencher Date: Mon, 29 Feb 2016 17:44:33 -0500 Subject: [PATCH] Allow by reference binary operands to differ in lifetime. --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index f3846b638..a26647226 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2513,7 +2513,7 @@ impl<'a, A, S, S2, D, E> $trt<&'a ArrayBase> for ArrayBase /// If their shapes disagree, `rhs` is broadcast to the shape of `self`. /// /// **Panics** if broadcasting isn’t possible. -impl<'a, A, S, S2, D, E> $trt<&'a ArrayBase> for &'a ArrayBase +impl<'a, 'b, A, S, S2, D, E> $trt<&'a ArrayBase> for &'b ArrayBase where A: Clone + $trt, S: Data, S2: Data, @@ -3107,4 +3107,3 @@ enum ElementsRepr { Slice(S), Counted(C), } -