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
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
4
4
LL | let _a = b + ", World!";
5
5
| - ^ ---------- &str
6
6
| | |
7
-
| | `+` can't be used to concatenate two `&str` strings
7
+
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &str
9
9
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
Copy file name to clipboardExpand all lines: src/test/ui/issues/issue-47380.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
4
4
LL | println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
5
5
| - ^ ---------- &str
6
6
| | |
7
-
| | `+` can't be used to concatenate two `&str` strings
7
+
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &str
9
9
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
Copy file name to clipboardExpand all lines: src/test/ui/span/issue-39018.stderr
+10-10
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
4
4
LL | let x = "Hello " + "World!";
5
5
| -------- ^ -------- &str
6
6
| | |
7
-
| | `+` can't be used to concatenate two `&str` strings
7
+
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &str
9
9
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
10
10
|
@@ -27,7 +27,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
| | `+` can't be used to concatenate a `&str` with a `String`
30
+
| | `+` cannot be used to concatenate a `&str` with a `String`
31
31
| &str
32
32
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
33
33
|
@@ -40,7 +40,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
40
40
LL | let _ = &a + &b;
41
41
| -- ^ -- &std::string::String
42
42
| | |
43
-
| | `+` can't be used to concatenate two `&str` strings
43
+
| | `+` cannot be used to concatenate two `&str` strings
44
44
| &std::string::String
45
45
help: 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
46
46
|
@@ -53,7 +53,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
53
53
LL | let _ = &a + b;
54
54
| -- ^ - std::string::String
55
55
| | |
56
-
| | `+` can't be used to concatenate a `&str` with a `String`
56
+
| | `+` cannot be used to concatenate a `&str` with a `String`
57
57
| &std::string::String
58
58
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
59
59
|
@@ -78,7 +78,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
78
78
LL | let _ = e + b;
79
79
| - ^ - std::string::String
80
80
| | |
81
-
| | `+` can't be used to concatenate a `&str` with a `String`
81
+
| | `+` cannot be used to concatenate a `&str` with a `String`
82
82
| &std::string::String
83
83
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
84
84
|
@@ -91,7 +91,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
91
91
LL | let _ = e + &b;
92
92
| - ^ -- &std::string::String
93
93
| | |
94
-
| | `+` can't be used to concatenate two `&str` strings
94
+
| | `+` cannot be used to concatenate two `&str` strings
95
95
| &std::string::String
96
96
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
97
97
|
@@ -104,7 +104,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
104
104
LL | let _ = e + d;
105
105
| - ^ - &str
106
106
| | |
107
-
| | `+` can't be used to concatenate two `&str` strings
107
+
| | `+` cannot be used to concatenate two `&str` strings
108
108
| &std::string::String
109
109
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
110
110
|
@@ -117,7 +117,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
117
117
LL | let _ = e + &d;
118
118
| - ^ -- &&str
119
119
| | |
120
-
| | `+` can't be used to concatenate two `&str` strings
120
+
| | `+` cannot be used to concatenate two `&str` strings
121
121
| &std::string::String
122
122
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
123
123
|
@@ -150,7 +150,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
150
150
LL | let _ = c + &d;
151
151
| - ^ -- &&str
152
152
| | |
153
-
| | `+` can't be used to concatenate two `&str` strings
153
+
| | `+` cannot be used to concatenate two `&str` strings
154
154
| &str
155
155
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
156
156
|
@@ -163,7 +163,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
163
163
LL | let _ = c + d;
164
164
| - ^ - &str
165
165
| | |
166
-
| | `+` can't be used to concatenate two `&str` strings
166
+
| | `+` cannot be used to concatenate two `&str` strings
167
167
| &str
168
168
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
Copy file name to clipboardExpand all lines: src/test/ui/str/str-concat-on-double-ref.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ error[E0369]: binary operation `+` cannot be applied to type `&std::string::Stri
4
4
LL | let c = a + b;
5
5
| - ^ - &str
6
6
| | |
7
-
| | `+` can't be used to concatenate two `&str` strings
7
+
| | `+` cannot be used to concatenate two `&str` strings
8
8
| &std::string::String
9
9
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
0 commit comments