Added example to TempDir
Replaced wrapper functions with no_run and as_str().unwrap() with display()
Merge pull request #19932 from elszben/master

Added example to TempDir

Reviewed-by: alexcrichton