Lamine Yamal became the second-youngest player to score for Spain at a World Cup, at 18 years and 343 days old.