2019-09-25 10:33:48 -07:00
|
|
|
error: you added something to a string. Consider using `String::push_str()` instead
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/string_add.rs:13:13
|
2019-09-25 10:33:48 -07:00
|
|
|
|
|
|
|
|
|
LL | x = x + ".";
|
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
= note: `-D clippy::string-add` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::string_add)]`
|
2019-09-25 10:33:48 -07:00
|
|
|
|
|
|
|
|
error: you added something to a string. Consider using `String::push_str()` instead
|
2025-02-28 23:20:48 +01:00
|
|
|
--> tests/ui/string_add.rs:18:13
|
2019-09-25 10:33:48 -07:00
|
|
|
|
|
|
|
|
|
LL | let z = y + "...";
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2025-02-28 23:20:48 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2019-09-25 10:33:48 -07:00
|
|
|
|