The meeting of the G20 foreign ministers in Rio de Janeiro has wrapped up after two days of discussions.