rust/src/test/ui/issues/issue-47377.stderr

16 lines
547 B
Plaintext
Raw Normal View History

2019-12-10 15:03:13 -06:00
error[E0369]: cannot add `&str` to `&str`
--> $DIR/issue-47377.rs:4:14
2018-01-13 05:43:18 -06:00
|
2018-02-22 18:42:32 -06:00
LL | let _a = b + ", World!";
2022-01-18 18:32:58 -06:00
| --^ ---------- &str
| |||
| ||`+` cannot be used to concatenate two `&str` strings
| |help: create an owned `String` from a string reference: `.to_owned()`
| &str
|
2022-01-18 18:32:58 -06:00
= note: string concatenation requires an owned `String` on the left
2018-01-13 05:43:18 -06:00
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0369`.