Inspects trait declaration for duplicate constants.