A child has been rushed to hospital with “possibly life-threatening” injuries after being struck by a car.