VIDEO: Tesla Model 3 quickly swerve on its own to avoid an accident at the last second

This is a dashcam recording of a Tesla Model 3 as it was slowing down to maintain a safe distance from the car in front, getting ready to take the exit when suddenly another car rear-ended this Model 3 from behind at about 40 mph. The autopilot in the model 3 apparently determined that there was no oncoming traffic in the adjacent lane and made a last-second swerve to the left.