fork/rust

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

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

master
573 B20 linesraw
1error: `to_string()` called on a `&str`
2  --> $DIR/str_to_string.rs:4:17
3   |
4LL |     let hello = "hello world".to_string();
5   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = help: consider using `.to_owned()`
8   = note: `-D clippy::str-to-string` implied by `-D warnings`
9   = help: to override `-D warnings` add `#[allow(clippy::str_to_string)]`
10
11error: `to_string()` called on a `&str`
12  --> $DIR/str_to_string.rs:7:5
13   |
14LL |     msg.to_string();
15   |     ^^^^^^^^^^^^^^^
16   |
17   = help: consider using `.to_owned()`
18
19error: aborting due to 2 previous errors
20