]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/format-borrow.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / suggestions / format-borrow.stderr
index 44bb11faa7f38eab722a73a1c0f45d1a4d0f86ca..d43a249d9cc966ec33a7d8ef47b9aa7c53d3a82c 100644 (file)
@@ -4,11 +4,8 @@ error[E0308]: mismatched types
 LL |     let a: String = &String::from("a");
    |                     ^^^^^^^^^^^^^^^^^^
    |                     |
-   |                     expected struct `std::string::String`, found reference
+   |                     expected struct `std::string::String`, found &std::string::String
    |                     help: consider removing the borrow: `String::from("a")`
-   |
-   = note: expected type `std::string::String`
-              found type `&std::string::String`
 
 error[E0308]: mismatched types
   --> $DIR/format-borrow.rs:4:21
@@ -16,11 +13,8 @@ error[E0308]: mismatched types
 LL |     let b: String = &format!("b");
    |                     ^^^^^^^^^^^^^
    |                     |
-   |                     expected struct `std::string::String`, found reference
+   |                     expected struct `std::string::String`, found &std::string::String
    |                     help: consider removing the borrow: `format!("b")`
-   |
-   = note: expected type `std::string::String`
-              found type `&std::string::String`
 
 error: aborting due to 2 previous errors