Files
rust/tests/ui/path_buf_push_overwrite.rs

10 lines
213 B
Rust
Raw Normal View History

2019-04-13 13:47:46 -03:00
use std::path::PathBuf;
#[warn(clippy::path_buf_push_overwrite)]
#[allow(clippy::pathbuf_init_then_push)]
2019-04-13 13:47:46 -03:00
fn main() {
let mut x = PathBuf::from("/foo");
x.push("/bar");
2025-02-11 17:57:08 +01:00
//~^ path_buf_push_overwrite
2019-04-13 13:47:46 -03:00
}