Markets teach the prime minister a lesson