fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
776 B18 linesraw
1error[E0369]: cannot add `&str` to `&str`
2  --> $DIR/issue-47380.rs:3:35
3   |
4LL |     println!("🦀🦀🦀🦀🦀"); let _a = b + ", World!";
5   |                                      - ^ ---------- &str
6   |                                      | |
7   |                                      | `+` cannot be used to concatenate two `&str` strings
8   |                                      &str
9   |
10   = note: string concatenation requires an owned `String` on the left
11help: create an owned `String` from a string reference
12   |
13LL |     println!("🦀🦀🦀🦀🦀"); let _a = b.to_owned() + ", World!";
14   |                                       +++++++++++
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0369`.