]> git.lizzy.rs Git - rust.git/blob - tests/ui/path_buf_push_overwrite.stderr
iterate List by value
[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: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