]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/path_buf_push_overwrite.stderr
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / path_buf_push_overwrite.stderr
1 error: calling `push` with '/' or '/' (file system root) will overwrite the previous path definition
2   --> $DIR/path_buf_push_overwrite.rs:7:12
3    |
4 LL |     x.push("/bar");
5    |            ^^^^^^ help: try: `"bar"`
6    |
7    = note: `-D clippy::path-buf-push-overwrite` implied by `-D warnings`
8
9 error: aborting due to previous error
10