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   = note: `-D clippy::str-to-string` implied by `-D warnings`
8   = help: consider using `.to_owned()`
9
10error: `to_string()` called on a `&str`
11  --> $DIR/str_to_string.rs:6:5
12   |
13LL |     msg.to_string();
14   |     ^^^^^^^^^^^^^^^
15   |
16   = help: consider using `.to_owned()`
17
18error: aborting due to 2 previous errors
19
20