Well, we see the gates dropping, and the car pull up to the crossing. But look in the distance, no train in sight! Then they switch to different camera angle and, wham, there's the train.
But, I do like that they filmed the train and the villain's truck both going away in the same shot. That's some excellent continuity.
A YouTube Link:
Duel (1971) - Scary moment at the railroad crossing