]> git.lizzy.rs Git - rust.git/blob - tests/ui/str_to_string.stderr
Auto merge of #88214 - notriddle:notriddle/for-loop-span-drop-temps-mut, r=nagisa
[rust.git] / tests / ui / str_to_string.stderr
1 error: `to_string()` called on a `&str`
2   --> $DIR/str_to_string.rs:4:17
3    |
4 LL |     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
10 error: `to_string()` called on a `&str`
11   --> $DIR/str_to_string.rs:6:5
12    |
13 LL |     msg.to_string();
14    |     ^^^^^^^^^^^^^^^
15    |
16    = help: consider using `.to_owned()`
17
18 error: aborting due to 2 previous errors
19