A compound represented by general formula (I) (the symbols in the formula are as defined in the description), a salt thereof, or the like is a RET inhibitor or RET tyrosine kinase inhibitor that can be used as an agent for the prevention or treatment of disorders including cancers and cancer metastases having mutations in RET.