mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-29 22:43:41 +00:00
4171299632
See #4012.
10 lines
334 B
Text
10 lines
334 B
Text
error: Calling `push` with '/' or '/' (file system root) will overwrite the previous path definition
|
|
--> $DIR/path_buf_push_overwrite.rs:7:12
|
|
|
|
|
LL | x.push("/bar");
|
|
| ^^^^^^ help: try: `"bar"`
|
|
|
|
|
= note: `-D clippy::path-buf-push-overwrite` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|