Pakistan's former military ruler Pervez Musharraf was rushed to hospital Thursday after suffering a "heart problem" on his way to court for a hearing in his trial for treason, police and an aide said.