You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-47377.stderr
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ LL | let _a = b + ", World!";
7
7
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &str
9
9
|
10
-
= 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.
10
+
= note: String concatenation appends the string on the right to the
11
+
string on the left and may require reallocation.
12
+
This requires ownership of the string on the left.
11
13
help: use `to_owned()` to create an owned `String` from a string reference
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-47380.stderr
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ LL | println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
7
7
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &str
9
9
|
10
-
= 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.
10
+
= note: String concatenation appends the string on the right to the
11
+
string on the left and may require reallocation.
12
+
This requires ownership of the string on the left.
11
13
help: use `to_owned()` to create an owned `String` from a string reference
12
14
|
13
15
LL | println!("🦀🦀🦀🦀🦀"); let _a = b.to_owned() + ", World!";
Copy file name to clipboardExpand all lines: src/test/ui/span/issue-39018.stderr
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ LL | let x = "Hello " + "World!";
7
7
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &str
9
9
|
10
-
= 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.
10
+
= note: String concatenation appends the string on the right to the
11
+
string on the left and may require reallocation.
12
+
This requires ownership of the string on the left.
11
13
help: use `to_owned()` to create an owned `String` from a string reference
12
14
|
13
15
LL | let x = "Hello ".to_owned() + "World!";
@@ -62,7 +64,9 @@ LL | let _ = &a + &b;
62
64
| &String
63
65
| help: remove the borrow to obtain an owned `String`
64
66
|
65
-
= 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.
67
+
= note: String concatenation appends the string on the right to the
68
+
string on the left and may require reallocation.
69
+
This requires ownership of the string on the left.
66
70
67
71
error[E0369]: cannot add `String` to `&String`
68
72
--> $DIR/issue-39018.rs:27:16
@@ -111,7 +115,9 @@ LL | let _ = e + &b;
111
115
| | `+` cannot be used to concatenate two `&str` strings
112
116
| &String
113
117
|
114
-
= 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.
118
+
= note: String concatenation appends the string on the right to the
119
+
string on the left and may require reallocation.
120
+
This requires ownership of the string on the left.
115
121
help: use `to_owned()` to create an owned `String` from a string reference
116
122
|
117
123
LL | let _ = e.to_owned() + &b;
@@ -126,7 +132,9 @@ LL | let _ = e + d;
126
132
| | `+` cannot be used to concatenate two `&str` strings
127
133
| &String
128
134
|
129
-
= 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.
135
+
= note: String concatenation appends the string on the right to the
136
+
string on the left and may require reallocation.
137
+
This requires ownership of the string on the left.
130
138
help: use `to_owned()` to create an owned `String` from a string reference
131
139
|
132
140
LL | let _ = e.to_owned() + d;
@@ -141,7 +149,9 @@ LL | let _ = e + &d;
141
149
| | `+` cannot be used to concatenate two `&str` strings
142
150
| &String
143
151
|
144
-
= 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.
152
+
= note: String concatenation appends the string on the right to the
153
+
string on the left and may require reallocation.
154
+
This requires ownership of the string on the left.
145
155
help: use `to_owned()` to create an owned `String` from a string reference
146
156
|
147
157
LL | let _ = e.to_owned() + &d;
@@ -172,7 +182,9 @@ LL | let _ = c + &d;
172
182
| | `+` cannot be used to concatenate two `&str` strings
173
183
| &str
174
184
|
175
-
= 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.
185
+
= note: String concatenation appends the string on the right to the
186
+
string on the left and may require reallocation.
187
+
This requires ownership of the string on the left.
176
188
help: use `to_owned()` to create an owned `String` from a string reference
177
189
|
178
190
LL | let _ = c.to_owned() + &d;
@@ -187,7 +199,9 @@ LL | let _ = c + d;
187
199
| | `+` cannot be used to concatenate two `&str` strings
188
200
| &str
189
201
|
190
-
= 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.
202
+
= note: String concatenation appends the string on the right to the
203
+
string on the left and may require reallocation.
204
+
This requires ownership of the string on the left.
191
205
help: use `to_owned()` to create an owned `String` from a string reference
Copy file name to clipboardExpand all lines: src/test/ui/str/str-concat-on-double-ref.stderr
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ LL | let c = a + b;
7
7
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &String
9
9
|
10
-
= 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.
10
+
= note: String concatenation appends the string on the right to the
11
+
string on the left and may require reallocation.
12
+
This requires ownership of the string on the left.
11
13
help: use `to_owned()` to create an owned `String` from a string reference
Copy file name to clipboardExpand all lines: src/test/ui/terminal-width/non-1-width-unicode-multiline-label.stderr
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ LL | ...ཽཾཿ྄ཱྀྀྂྃ྅྆྇ྈྉྊྋྌྍྎྏྐྑྒྒྷྔ
7
7
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &str
9
9
|
10
-
= 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.
10
+
= note: String concatenation appends the string on the right to the
11
+
string on the left and may require reallocation.
12
+
This requires ownership of the string on the left.
11
13
help: use `to_owned()` to create an owned `String` from a string reference
12
14
|
13
15
LL | let _ = "ༀ༁༂༃༄༅༆༇༈༉༊་༌།༎༏༐༑༒༓༔༕༖༗༘༙༚༛༜༝༞༟༠༡༢༣༤༥༦༧༨༩༪༫༬༭༮༯༰༱༲༳༴༵༶༷༸༹༺༻༼༽༾༿ཀཁགགྷངཅཆཇཉཊཋཌཌྷཎཏཐདདྷནཔཕབབྷམཙཚཛཛྷཝཞཟའཡརལཤཥསཧཨཀྵཪཫཬཱཱཱིིུུྲྀཷླྀཹེཻོཽཾཿ྄ཱྀྀྂྃ྅྆྇ྈྉྊྋྌྍྎྏྐྑྒྒྷྔྕྖྗྙྚྛྜྜྷྞྟྠྡྡྷྣྤྥྦྦྷྨྩྪྫྫྷྭྮྯྰྱྲླྴྵྶྷྸྐྵྺྻྼ྾྿࿀࿁࿂࿃࿄࿅࿆࿇࿈࿉࿊࿋࿌࿎࿏࿐࿑࿒࿓࿔࿕࿖࿗࿘࿙࿚"; let _a = unicode_is_fun.to_owned() + " really fun!";
0 commit comments