No person shall be elected to the office of the President more than three times, nor be elected to any additional term after being elected to two consecutive terms...
Obama served 2 consecutive terms so would be ineligible. They literally wrote this so that only Trump would be eligible.