Added example to TempDir

First attempt to contribute to rust (and using github). This commit adds a few examples to std::io::TempDir. The examples seem to look okay (in my browser) and make check also passes.
Instead of `.as_str().unwrap()` the way to print a path is currently `.display()`, would you be ok switch to that for these examples?