]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/str_to_string.stderr
Rollup merge of #99396 - compiler-errors:missing-tests, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / 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