about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/span/coerce-suggestions.stderr7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/ui/span/coerce-suggestions.stderr b/src/test/ui/span/coerce-suggestions.stderr
index 36732283014..e3164661507 100644
--- a/src/test/ui/span/coerce-suggestions.stderr
+++ b/src/test/ui/span/coerce-suggestions.stderr
@@ -18,7 +18,11 @@ error[E0308]: mismatched types
    |
    = note: expected type `&str`
    = note:    found type `std::string::String`
-   = help: try with `&String::new()`
+   = help: here are some functions which might fulfill your needs:
+ - .as_str()
+ - .trim()
+ - .trim_left()
+ - .trim_right()
 
 error[E0308]: mismatched types
   --> $DIR/coerce-suggestions.rs:30:10
@@ -28,7 +32,6 @@ error[E0308]: mismatched types
    |
    = note: expected type `&mut std::string::String`
    = note:    found type `&std::string::String`
-   = help: try with `&mut y`
 
 error[E0308]: mismatched types
   --> $DIR/coerce-suggestions.rs:36:11