another overflow dev

Thu, 01 May 2025 02:28:28 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Thu, 01 May 2025 02:28:28 -0500
branch
dev
changeset 121
fc7d923ff6e7
parent 120
07e487685b29
child 122
495448cca603

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())
+        //     }
+        // }
     };
 }
 

mercurial