rust/tests/ui/path_buf_push_overwrite.fixed

9 lines
166 B
Rust
Raw Normal View History

//@run-rustfix
2019-04-13 11:47:46 -05:00
use std::path::PathBuf;
#[warn(clippy::all, clippy::path_buf_push_overwrite)]
2019-04-13 11:47:46 -05:00
fn main() {
let mut x = PathBuf::from("/foo");
x.push("bar");
}