]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | error[E0369]: cannot add `&str` to `&str` |
532ac7d7 | 2 | --> $DIR/issue-47377.rs:4:14 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | let _a = b + ", World!"; |
532ac7d7 XL |
5 | | - ^ ---------- &str |
6 | | | | | |
48663c56 | 7 | | | `+` cannot be used to concatenate two `&str` strings |
532ac7d7 | 8 | | &str |
e74abb32 | 9 | | |
5099ac24 FG |
10 | = note: string concatenation requires an owned `String` on the left |
11 | help: create an owned `String` from a string reference | |
2c00a5a8 | 12 | | |
0531ce1d | 13 | LL | let _a = b.to_owned() + ", World!"; |
5099ac24 | 14 | | +++++++++++ |
2c00a5a8 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
0531ce1d | 18 | For more information about this error, try `rustc --explain E0369`. |