]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/suggestions/chain-method-call-mutation-in-place.stderr
Make const/fn return params more suggestable
[rust.git] / tests / ui / suggestions / chain-method-call-mutation-in-place.stderr
index 965dbb9679d249d67dfcdc3b6c42ff29918e7b98..11d9b8391f6d2502e1e50121df0a4ce4008806fb 100644 (file)
@@ -4,7 +4,7 @@ error[E0308]: mismatched types
 LL | fn foo(mut s: String) -> String {
    |                          ------ expected `String` because of return type
 LL |     s.push_str("asdf")
-   |     ^^^^^^^^^^^^^^^^^^ expected struct `String`, found `()`
+   |     ^^^^^^^^^^^^^^^^^^ expected `String`, found `()`
    |
 note: method `push_str` modifies its receiver in-place
   --> $DIR/chain-method-call-mutation-in-place.rs:3:7