Rudimentary horn pregnancy with herniation into the main uterine cavity.