A rainbow cannot form on a solar eclipse due to absence of sunlight.
Rainbows are formed when a solar eclipse happens.
Rainbow is formed due to sunlight getting dispersed and internally reflected inside raindrops.