summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/format_push_string.stderr
blob: d7be9a5f206c1675954c096dc5a5811ef9a25659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error: `format!(..)` appended to existing `String`
  --> $DIR/format_push_string.rs:5:5
   |
LL |     string += &format!("{:?}", 1234);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `write!` to avoid the extra allocation
   = note: `-D clippy::format-push-string` implied by `-D warnings`

error: `format!(..)` appended to existing `String`
  --> $DIR/format_push_string.rs:6:5
   |
LL |     string.push_str(&format!("{:?}", 5678));
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `write!` to avoid the extra allocation

error: aborting due to 2 previous errors