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