Fossils show huge salamanderlike predator with sharp fangs existed before the dinosaurs