]> git.lizzy.rs Git - rust.git/blob - tests/ui/format_push_string.stderr
Auto merge of #9572 - Nilstrieb:as-ptr-cast-mut, r=dswij
[rust.git] / 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