No person shall be eligible to the office of governor or lieutenant governor unless he be a citizen of the United States, and a qualified elector of the state, who shall have attained the age of thirty years, and who shall have resided five years next preceding the election within the state or territory, nor shall he be eligible to any other office during the term for which he shall have been elected.