]> git.lizzy.rs Git - rust.git/blob - tests/ui/path_buf_push_overwrite.stderr
Auto merge of #3989 - flip1995:assert_on_const, r=phansch
[rust.git] / 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:6:12
3    |
4 LL |     x.push("/bar");
5    |            ^^^^^^ help: try: `"bar"`
6    |
7    = note: #[deny(clippy::path_buf_push_overwrite)] on by default
8
9 error: aborting due to previous error
10