If such a Pokémon were introduced in the video game, each Pokémon would have a 6% chance of have an allergy to said Pokémon. It would inhibit their ability to perform Mega Evolution.
It would evolve into cashew oil, and there'd be some mechanic where you can only evolve it if a rock type is in your party when you level up in a specific geographic region or something.