]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-47380.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-47380.stderr
CommitLineData
dfeec247 1error[E0369]: cannot add `&str` to `&str`
532ac7d7 2 --> $DIR/issue-47380.rs:3:35
2c00a5a8 3 |
0531ce1d 4LL | println!("🦀🦀🦀🦀🦀"); 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
11help: create an owned `String` from a string reference
2c00a5a8 12 |
0531ce1d 13LL | println!("🦀🦀🦀🦀🦀"); let _a = b.to_owned() + ", World!";
5099ac24 14 | +++++++++++
2c00a5a8
XL
15
16error: aborting due to previous error
17
0531ce1d 18For more information about this error, try `rustc --explain E0369`.