]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/path_buf_push_overwrite.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[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 }