]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/format_push_string.stderr
Auto merge of #102536 - scottmcm:lookup_line-tweak, r=jackh726
[rust.git] / src / tools / clippy / tests / ui / format_push_string.stderr
1 error: `format!(..)` appended to existing `String`
2   --> $DIR/format_push_string.rs:5:5
3    |
4 LL |     string += &format!("{:?}", 1234);
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = help: consider using `write!` to avoid the extra allocation
8    = note: `-D clippy::format-push-string` implied by `-D warnings`
9
10 error: `format!(..)` appended to existing `String`
11   --> $DIR/format_push_string.rs:6:5
12    |
13 LL |     string.push_str(&format!("{:?}", 5678));
14    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = help: consider using `write!` to avoid the extra allocation
17
18 error: aborting due to 2 previous errors
19