shotgun marriage

 
(also shotgun wedding)

noun

informal
  • an enforced or hurried wedding, especially because the bride is pregnant: figurative their vision of Europe is fundamentally different from ours and a shotgun marriage would be in nobody’s interests