summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/str_to_string.stderr
blob: 1d47da571fa1f370bb07fd6526f042a272669f0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error: `to_string()` called on a `&str`
  --> $DIR/str_to_string.rs:4:17
   |
LL |     let hello = "hello world".to_string();
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `.to_owned()`
   = note: `-D clippy::str-to-string` implied by `-D warnings`

error: `to_string()` called on a `&str`
  --> $DIR/str_to_string.rs:6:5
   |
LL |     msg.to_string();
   |     ^^^^^^^^^^^^^^^
   |
   = help: consider using `.to_owned()`

error: aborting due to 2 previous errors