2 * Checks for [push](https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.push)
3 calls on `PathBuf` that can cause overwrites.
6 Calling `push` with a root path at the start can overwrite the
11 use std::path::PathBuf;
13 let mut x = PathBuf::from("/foo");
15 assert_eq!(x, PathBuf::from("/bar"));
20 use std::path::PathBuf;
22 let mut x = PathBuf::from("/foo");
24 assert_eq!(x, PathBuf::from("/foo/bar"));