]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/string_add_assign.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / string_add_assign.stderr
CommitLineData
f20569fa
XL
1error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
2 --> $DIR/string_add_assign.rs:10:9
3 |
4LL | x = x + ".";
5 | ^^^^^^^^^^^
6 |
7 = note: `-D clippy::string-add-assign` implied by `-D warnings`
8
9error: manual implementation of an assign operation
10 --> $DIR/string_add_assign.rs:10:9
11 |
12LL | x = x + ".";
13 | ^^^^^^^^^^^ help: replace it with: `x += "."`
14 |
15 = note: `-D clippy::assign-op-pattern` implied by `-D warnings`
16
17error: manual implementation of an assign operation
18 --> $DIR/string_add_assign.rs:19:5
19 |
20LL | x = x + 1;
21 | ^^^^^^^^^ help: replace it with: `x += 1`
22
23error: aborting due to 3 previous errors
24