summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/string_to_string.stderr
blob: f1f8e176bc57dacb06f9789606c7f2dbe1ee2f82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: `to_string()` called on a `String`
  --> $DIR/string_to_string.rs:6:17
   |
LL |     let mut v = message.to_string();
   |                 ^^^^^^^^^^^^^^^^^^^
   |
   = help: consider using `.clone()`
   = note: `-D clippy::string-to-string` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::string_to_string)]`

error: aborting due to 1 previous error