Sign in
◑
Theme
rust
/
rust
/
8662be8340e5e2bc06fe16b7df0a7d02ebdf5e64
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
path_buf_push_overwrite.fixed
blob: 5c818bad3d53d1ed886e0868bcc69b852b61bfd2 [
file
]
use
std
::
path
::
PathBuf
;
#[warn(clippy::path_buf_push_overwrite)]
#[allow(clippy::pathbuf_init_then_push)]
fn main
()
{
let
mut x
=
PathBuf
::
from
(
"/foo"
);
x
.
push
(
"bar"
);
//~^ path_buf_push_overwrite
}