Catalyzes the dehydration of trans-3-hydroxy-L-proline to delta-1-pyrroline-2-carboxylate (Pyr2C). trans-3-hydroxy-L-proline = 1-pyrroline-2-carboxylate + H2O Homodimer. In contrast to the T.cruzi proline racemase enzyme, lacks the conserved Cys at position 267 which is replaced by a Thr residue, transforming the racemase activity into dehydratase activity. Belongs to the proline racemase family.