rust/tests/ui/path_buf_push_overwrite.stderr
André Luis Leal Cardoso Junior 7e9cb5b84a Add lint PathBufPushOverwrite
2019-04-18 08:05:55 -03:00

11 lines
327 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: #[deny(clippy::path_buf_push_overwrite)] on by default
error: aborting due to previous error