]> git.lizzy.rs Git - rust.git/blob - tests/ui/path_buf_push_overwrite.fixed
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / path_buf_push_overwrite.fixed
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 }