A car has crashed into a tree on the side of the road.