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-4
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
2
2
--> $DIR/issue-47377.rs:4:14
3
3
|
4
4
LL | let _a = b + ", World!";
5
-
| --^-----------
6
-
| | |
7
-
| | &str
5
+
| - ^ ---------- &str
6
+
| | |
7
+
| | `+` can't be used to concatenate two `&str` strings
8
8
| &str
9
-
| `+` can't be used to concatenate two `&str` strings
10
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
+3-4
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
2
2
--> $DIR/issue-47380.rs:3:35
3
3
|
4
4
LL | println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
5
-
| --^-----------
6
-
| | |
7
-
| | &str
5
+
| - ^ ---------- &str
6
+
| | |
7
+
| | `+` can't be used to concatenate two `&str` strings
8
8
| &str
9
-
| `+` can't be used to concatenate two `&str` strings
10
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
11
10
|
12
11
LL | println!("🦀🦀🦀🦀🦀"); let _a = b.to_owned() + ", World!";
Copy file name to clipboardExpand all lines: src/test/ui/span/issue-39018.stderr
+3-4
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@ error[E0369]: binary operation `+` cannot be applied to type `&str`
2
2
--> $DIR/issue-39018.rs:2:22
3
3
|
4
4
LL | let x = "Hello " + "World!";
5
-
| ---------^---------
6
-
| | |
7
-
| | &str
5
+
| -------- ^ -------- &str
6
+
| | |
7
+
| | `+` can't be used to concatenate two `&str` strings
8
8
| &str
9
-
| `+` can't be used to concatenate two `&str` strings
10
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