Skip to content

Commit ca22c1e

Browse files
author
Daniel Vainsencher
committed
Allow by reference binary operands to differ in lifetime.
1 parent 9bb30f8 commit ca22c1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ impl<'a, A, S, S2, D, E> $trt<&'a ArrayBase<S2, E>> for ArrayBase<S, D>
25132513
/// If their shapes disagree, `rhs` is broadcast to the shape of `self`.
25142514
///
25152515
/// **Panics** if broadcasting isn’t possible.
2516-
impl<'a, A, S, S2, D, E> $trt<&'a ArrayBase<S2, E>> for &'a ArrayBase<S, D>
2516+
impl<'a, 'b, A, S, S2, D, E> $trt<&'a ArrayBase<S2, E>> for &'b ArrayBase<S, D>
25172517
where A: Clone + $trt<A, Output=A>,
25182518
S: Data<Elem=A>,
25192519
S2: Data<Elem=A>,
@@ -3107,4 +3107,3 @@ enum ElementsRepr<S, C> {
31073107
Slice(S),
31083108
Counted(C),
31093109
}
3110-

0 commit comments

Comments
 (0)