better error message if rhs contains constant (but operator is not "~")