pub(crate) fn mismatch_error<T: Debug>(
    variant: ErrorVariant,
    struct1: &T,
    struct2: &T
) -> Error