]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/path_buf_push_overwrite.rs
Add 'compiler/rustc_smir/' from commit '9abcb5c7b574cf316eb23d3f469187bb86ba3019'
[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 }