about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/str_to_string.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/str_to_string.fixed')
-rw-r--r--src/tools/clippy/tests/ui/str_to_string.fixed5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/clippy/tests/ui/str_to_string.fixed b/src/tools/clippy/tests/ui/str_to_string.fixed
index 52e40b45a8b..2941c4dbd33 100644
--- a/src/tools/clippy/tests/ui/str_to_string.fixed
+++ b/src/tools/clippy/tests/ui/str_to_string.fixed
@@ -2,8 +2,9 @@
 
 fn main() {
     let hello = "hello world".to_owned();
-    //~^ ERROR: `to_string()` called on a `&str`
+    //~^ str_to_string
+
     let msg = &hello[..];
     msg.to_owned();
-    //~^ ERROR: `to_string()` called on a `&str`
+    //~^ str_to_string
 }