mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
421 B
Plaintext
12 lines
421 B
Plaintext
error: calling `push` with '/' or '\' (file system root) will overwrite the previous path definition
|
|
--> $DIR/path_buf_push_overwrite.rs:6:12
|
|
|
|
|
LL | x.push("/bar");
|
|
| ^^^^^^ help: try: `"bar"`
|
|
|
|
|
= note: `-D clippy::path-buf-push-overwrite` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::path_buf_push_overwrite)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|