Make doc tests compilable

Created by  David Tolnay  on October 6, 2019
Q3TF6DU36OM4M4A72QPN74NRKH7CZBBKFAKLTJRPL5JD3LI5276QC
Change contents