Frank Anguissa helped Cameroon overcome Brazil 1-0 in their final Group G match but it wasn't enough for them to reach the last 16.
Vincent Aboubakar headed in the only goal of the game in additional time.
However, Switzerland's 3-2 victory over Serbia means it is they who advance from the group with Brazil.
The Napoli midfielder played the full 90 minutes.