]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/chain-method-call-mutation-in-place.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / suggestions / chain-method-call-mutation-in-place.stderr
index 63e3bb78954cf298e86fc8e54b56729312963873..965dbb9679d249d67dfcdc3b6c42ff29918e7b98 100644 (file)
@@ -2,9 +2,9 @@ error[E0308]: mismatched types
   --> $DIR/chain-method-call-mutation-in-place.rs:3:5
    |
 LL | fn foo(mut s: String) -> String {
-   |                          ------ expected `std::string::String` because of return type
+   |                          ------ expected `String` because of return type
 LL |     s.push_str("asdf")
-   |     ^^^^^^^^^^^^^^^^^^ expected struct `std::string::String`, found `()`
+   |     ^^^^^^^^^^^^^^^^^^ expected struct `String`, found `()`
    |
 note: method `push_str` modifies its receiver in-place
   --> $DIR/chain-method-call-mutation-in-place.rs:3:7