about summary refs log tree commit diff
path: root/src/test/ui/issues
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2022-01-12 22:20:13 -0800
committerNoah Lev <camelidcamel@gmail.com>2022-01-12 22:20:13 -0800
commit69db5e2c8c8bca8bc513cbe4ffa37dff234ad508 (patch)
tree5502838ec432ec22e5f090557841edc8249a7a17 /src/test/ui/issues
parent2835ace4ca1901b60678484ece129a4f60bd1887 (diff)
Split up very long message
This should make it easier to read.
Diffstat (limited to 'src/test/ui/issues')
-rw-r--r--src/test/ui/issues/issue-47377.stderr3
-rw-r--r--src/test/ui/issues/issue-47380.stderr3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/issues/issue-47377.stderr b/src/test/ui/issues/issue-47377.stderr
index 2c17a19779f..2e00de84087 100644
--- a/src/test/ui/issues/issue-47377.stderr
+++ b/src/test/ui/issues/issue-47377.stderr
@@ -7,7 +7,8 @@ LL |      let _a = b + ", World!";
    |               | `+` cannot be used to concatenate two `&str` strings
    |               &str
    |
-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
+   = note: 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.
+help: use `to_owned()` to create an owned `String` from a string reference
    |
 LL |      let _a = b.to_owned() + ", World!";
    |                +++++++++++
diff --git a/src/test/ui/issues/issue-47380.stderr b/src/test/ui/issues/issue-47380.stderr
index 417206e6cc4..fec64009444 100644
--- a/src/test/ui/issues/issue-47380.stderr
+++ b/src/test/ui/issues/issue-47380.stderr
@@ -7,7 +7,8 @@ LL |     println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
    |                                      | `+` cannot be used to concatenate two `&str` strings
    |                                      &str
    |
-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
+   = note: 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.
+help: use `to_owned()` to create an owned `String` from a string reference
    |
 LL |     println!("🦀🦀🦀🦀🦀"); let _a = b.to_owned() + ", World!";
    |                                       +++++++++++