2023-04-20 14:37:15 +00:00
|
|
|
//@run-rustfix
|
2019-04-13 16:47:46 +00:00
|
|
|
use std::path::PathBuf;
|
|
|
|
|
2019-04-21 13:22:06 +00:00
|
|
|
#[warn(clippy::all, clippy::path_buf_push_overwrite)]
|
2019-04-13 16:47:46 +00:00
|
|
|
fn main() {
|
|
|
|
let mut x = PathBuf::from("/foo");
|
|
|
|
x.push("/bar");
|
|
|
|
}
|