rust-clippy/tests/ui/path_buf_push_overwrite.stderr

11 lines
334 B
Text
Raw Normal View History

error: calling `push` with '/' or '/' (file system root) will overwrite the previous path definition
2023-07-27 11:40:22 +00:00
--> $DIR/path_buf_push_overwrite.rs:6:12
2019-04-13 16:47:46 +00:00
|
LL | x.push("/bar");
| ^^^^^^ help: try: `"bar"`
|
= note: `-D clippy::path-buf-push-overwrite` implied by `-D warnings`
2019-04-13 16:47:46 +00:00
error: aborting due to previous error