]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/path_buf_push_overwrite.rs
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[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 }