src/direct_product.rs

branch
dev
changeset 121
fc7d923ff6e7
parent 120
07e487685b29
child 124
6aa955ad8122
--- 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())
+        //     }
+        // }
     };
 }
 

mercurial