We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f439a24 commit 28e2c6aCopy full SHA for 28e2c6a
src/test/ui/span/coerce-suggestions.stderr
@@ -18,7 +18,11 @@ error[E0308]: mismatched types
18
|
19
= note: expected type `&str`
20
= note: found type `std::string::String`
21
- = help: try with `&String::new()`
+ = help: here are some functions which might fulfill your needs:
22
+ - .as_str()
23
+ - .trim()
24
+ - .trim_left()
25
+ - .trim_right()
26
27
error[E0308]: mismatched types
28
--> $DIR/coerce-suggestions.rs:30:10
@@ -28,7 +32,6 @@ error[E0308]: mismatched types
32
29
33
= note: expected type `&mut std::string::String`
30
34
= note: found type `&std::string::String`
31
- = help: try with `&mut y`
35
36
37
--> $DIR/coerce-suggestions.rs:36:11
0 commit comments