rust/src/tools/clippy/tests/ui/path_buf_push_overwrite.fixed
Oliver Scherer bce9fae97a Add 'src/tools/clippy/' from commit 'd2708873ef'
git-subtree-dir: src/tools/clippy
git-subtree-mainline: 06c44816c1
git-subtree-split: d2708873ef
2020-05-02 09:49:00 +02:00

8 lines
166 B
Rust

// run-rustfix
use std::path::PathBuf;
#[warn(clippy::all, clippy::path_buf_push_overwrite)]
fn main() {
let mut x = PathBuf::from("/foo");
x.push("bar");
}