diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/tests/ui/string_to_string.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/string_to_string.stderr b/src/tools/clippy/tests/ui/string_to_string.stderr new file mode 100644 index 000000000..1ebd17999 --- /dev/null +++ b/src/tools/clippy/tests/ui/string_to_string.stderr @@ -0,0 +1,11 @@ +error: `to_string()` called on a `String` + --> $DIR/string_to_string.rs:6:17 + | +LL | let mut v = message.to_string(); + | ^^^^^^^^^^^^^^^^^^^ + | + = note: `-D clippy::string-to-string` implied by `-D warnings` + = help: consider using `.clone()` + +error: aborting due to previous error + |