]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/path_buf_push_overwrite.rs
Rollup merge of #102581 - jyn514:src-detection, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / path_buf_push_overwrite.rs
1 // run-rustfix
2 use std::path::PathBuf;
3
4 #[warn(clippy::all, clippy::path_buf_push_overwrite)]
5 fn main() {
6     let mut x = PathBuf::from("/foo");
7     x.push("/bar");
8 }