]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/str/str-concat-on-double-ref.stderr
Improve suggestions for type errors with string concatenation
[rust.git] / src / test / ui / str / str-concat-on-double-ref.stderr
index dee28897f4dddce8aa89722717f08d9760b12aa2..cc9456be901699454db1a9ec9f7beeaf3612b58b 100644 (file)
@@ -10,7 +10,7 @@ LL |     let c = a + b;
 help: `to_owned()` can be used to create an owned `String` from a string reference. String concatenation appends the string on the right to the string on the left and may require reallocation. This requires ownership of the string on the left
    |
 LL |     let c = a.to_owned() + b;
-   |             ~~~~~~~~~~~~
+   |              +++++++++++
 
 error: aborting due to previous error