Cameroon stun Brazil but go out of World Cup
Coach Tite sent out a second-string side and the result was Brazil's first defeat in the group stage of a World Cup since 1998, when they were beaten by Norway.
Vincent Aboubakar headed in a stoppage-time winner and was then sent off as Cameroon claimed a memorable 1-0 victory over favourites Brazil at the World Cup on Friday, but still failed to go through to the last 16.
Aboubakar, who had come in to captain Rigobert Song's team, connected with a cross from substitute Jerome Ngom Mbekeli to break the deadlock in the 92nd minute at Doha's Lusail Stadium.
But Switzerland's 3-2 win over Serbia at the same time meant the Swiss advanced from Group G along with already-qualified Brazil.
Switzerland booked a last-16 after a 3-2 win over Serbia in a bad-tempered match secured them second place in Group G.
Xherdan Shaqiri's deflected strike put the Swiss ahead but Aleksandar Mitrovic's fine header brought Serbia level at Stadium 974.
Dusan Vlahovic then gave Serbia the lead only for Breel Embolo to equalise before half-time.
Remo Freuler's brilliant goal early in the second half sent the Swiss through to the knockout rounds for the fourth time in five World Cups.
Tempers flared in the second half on Friday after Serbia appealed for a penalty, with the stadium announcer calling for an end to "all discriminatory chants and gestures" around 15 minutes later.
Switzerland, who had their destiny in their own hands, nearly struck inside 30 seconds.