rust/tests/ui/path_buf_push_overwrite.stderr

12 lines
425 B
Plaintext
Raw Normal View History

error: calling `push` with '/' or '\' (file system root) will overwrite the previous path definition
2024-02-17 06:16:29 -06:00
--> tests/ui/path_buf_push_overwrite.rs:6:12
2019-04-13 11:47:46 -05:00
|
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)]`
2019-04-13 11:47:46 -05:00
error: aborting due to 1 previous error
2019-04-13 11:47:46 -05:00