Thu, 01 May 2025 02:28:28 -0500
another overflow
| src/direct_product.rs | file | annotate | diff | comparison | revisions |
--- a/src/direct_product.rs Thu May 01 02:13:44 2025 -0500 +++ b/src/direct_product.rs Thu May 01 02:28:28 2025 -0500 @@ -53,17 +53,18 @@ } } - impl<'a, A, B> $trait for &'a Pair<A, B> - where - &'a A: $trait, - &'a B: $trait, - { - type Output = Pair<<&'a A as $trait>::Output, <&'a B as $trait>::Output>; - fn $fn(self) -> Self::Output { - let Pair(ref a, ref b) = self; - Pair(a.$fn(), b.$fn()) - } - } + // Compiler overflow + // impl<'a, A, B> $trait for &'a Pair<A, B> + // where + // &'a A: $trait, + // &'a B: $trait, + // { + // type Output = Pair<<&'a A as $trait>::Output, <&'a B as $trait>::Output>; + // fn $fn(self) -> Self::Output { + // let Pair(ref a, ref b) = self; + // Pair(a.$fn(), b.$fn()) + // } + // } }; }