3 #![feature(generic_associated_types)]
5 pub trait Scalar: 'static {
6 type RefType<'a>: ScalarRef<'a>;
9 pub trait ScalarRef<'a>: 'a {}
11 fn cmp_eq<'a, 'b, A: Scalar, B: Scalar, O: Scalar>(a: A::RefType<'a>, b: B::RefType<'b>) -> O {
15 fn build_expression<A: Scalar, B: Scalar, O: Scalar>(
16 ) -> impl Fn(A::RefType<'_>, B::RefType<'_>) -> O {