]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/deref-suggestion.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / deref-suggestion.stderr
index 89fd7aae3bea0ca903a25539ef3cf26f67bbdd4a..f59f05db9c047b853dcbf571a12ee34c302c1f2d 100644 (file)
@@ -4,7 +4,7 @@ error[E0308]: mismatched types
 LL |     foo(s);
    |         ^
    |         |
-   |         expected struct `std::string::String`, found `&std::string::String`
+   |         expected struct `String`, found `&String`
    |         help: try using a conversion method: `s.to_string()`
 
 error[E0308]: mismatched types
@@ -22,7 +22,7 @@ error[E0308]: mismatched types
 LL |     foo(&"aaa".to_owned());
    |         ^^^^^^^^^^^^^^^^^
    |         |
-   |         expected struct `std::string::String`, found `&std::string::String`
+   |         expected struct `String`, found `&String`
    |         help: consider removing the borrow: `"aaa".to_owned()`
 
 error[E0308]: mismatched types
@@ -31,7 +31,7 @@ error[E0308]: mismatched types
 LL |     foo(&mut "aaa".to_owned());
    |         ^^^^^^^^^^^^^^^^^^^^^
    |         |
-   |         expected struct `std::string::String`, found `&mut std::string::String`
+   |         expected struct `String`, found `&mut String`
    |         help: consider removing the borrow: `"aaa".to_owned()`
 
 error[E0308]: mismatched types