Corn snakes and alot of colubrids are ophiophagus, meaning the eat snakes as part of their diet(King snakes do this more regularly).

It is best to house all snakes separately. Zero chance of cannibalism, parasite/disease transfer, stress-induced illness, stress-induced anorexia(not eating). Snakes should only be brought together for breeding, and even then, separated after a few days to rest and eat before being placed back with the female(s) again.