The office of any supreme court justice or superior court judge becomes vacant ninety days after the election at which he is rejected by a majority of those voting on the question, or for which he fails to file his declaration of candidacy to succeed himself.