]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/string_add_assign.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[rust.git] / src / tools / clippy / tests / ui / string_add_assign.stderr
1 error: 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    |
4 LL |         x = x + ".";
5    |         ^^^^^^^^^^^
6    |
7    = note: `-D clippy::string-add-assign` implied by `-D warnings`
8
9 error: manual implementation of an assign operation
10   --> $DIR/string_add_assign.rs:10:9
11    |
12 LL |         x = x + ".";
13    |         ^^^^^^^^^^^ help: replace it with: `x += "."`
14    |
15    = note: `-D clippy::assign-op-pattern` implied by `-D warnings`
16
17 error: manual implementation of an assign operation
18   --> $DIR/string_add_assign.rs:19:5
19    |
20 LL |     x = x + 1;
21    |     ^^^^^^^^^ help: replace it with: `x += 1`
22
23 error: aborting due to 3 previous errors
24