]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/issue-83943.stderr
Use multispan suggestions more often
[rust.git] / src / test / ui / suggestions / issue-83943.stderr
index a26700ea3c7c5ddbbf0d3928e9b7e1e923a5d32c..885106e8429bcfcc983c89d4a9676c0a5c543b84 100644 (file)
@@ -6,10 +6,9 @@ LL | |         "A".to_string()
    | |         --------------- expected because of this
 LL | |     } else {
 LL | |         "B"
-   | |         ^^^
+   | |         ^^^- help: try using a conversion method: `.to_string()`
    | |         |
    | |         expected struct `String`, found `&str`
-   | |         help: try using a conversion method: `"B".to_string()`
 LL | |     };
    | |_____- `if` and `else` have incompatible types