Skip to content

Commit f0628c3

Browse files
committed
Merge pull request #103 from daniel-vainsencher/master
Allow &a @ &b to have different lifetimes
2 parents 08b6e35 + 73ea381 commit f0628c3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/impl_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'a, A, S, S2, D, E> $trt<&'a ArrayBase<S2, E>> for ArrayBase<S, D>
9595
/// If their shapes disagree, `rhs` is broadcast to the shape of `self`.
9696
///
9797
/// **Panics** if broadcasting isn’t possible.
98-
impl<'a, A, S, S2, D, E> $trt<&'a ArrayBase<S2, E>> for &'a ArrayBase<S, D>
98+
impl<'a, 'b, A, S, S2, D, E> $trt<&'a ArrayBase<S2, E>> for &'b ArrayBase<S, D>
9999
where A: Clone + $trt<A, Output=A>,
100100
S: Data<Elem=A>,
101101
S2: Data<Elem=A>,

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -682,4 +682,3 @@ enum ElementsRepr<S, C> {
682682
Slice(S),
683683
Counted(C),
684684
}
685-

0 commit comments

Comments
 (0)