summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/string_add.stderr
blob: 892753b9034e95975ee75b38fe65f421cd4dbe48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
error: manual implementation of an assign operation
  --> $DIR/string_add.rs:13:9
   |
LL |         x = x + ".";
   |         ^^^^^^^^^^^ help: replace it with: `x += "."`
   |
   = note: `-D clippy::assign-op-pattern` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::assign_op_pattern)]`

error: you added something to a string. Consider using `String::push_str()` instead
  --> $DIR/string_add.rs:13:13
   |
LL |         x = x + ".";
   |             ^^^^^^^
   |
   = note: `-D clippy::string-add` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::string_add)]`

error: you added something to a string. Consider using `String::push_str()` instead
  --> $DIR/string_add.rs:17:13
   |
LL |     let z = y + "...";
   |             ^^^^^^^^^

error: manual implementation of an assign operation
  --> $DIR/string_add.rs:22:5
   |
LL |     x = x + 1;
   |     ^^^^^^^^^ help: replace it with: `x += 1`

error: aborting due to 4 previous errors