]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/block-result/consider-removing-last-semi.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / block-result / consider-removing-last-semi.stderr
index b028bfd5203237b018928bba92da5cd0fc9b9ab9..fed98f912462b38fe5a1a177dc81be6fda99fe2f 100644 (file)
@@ -8,9 +8,6 @@ LL | fn f() -> String {
 LL |     0u8;
 LL |     "bla".to_string();
    |                      - help: consider removing this semicolon
-   |
-   = note: expected struct `std::string::String`
-                found type `()`
 
 error[E0308]: mismatched types
   --> $DIR/consider-removing-last-semi.rs:6:11
@@ -22,9 +19,6 @@ LL | fn g() -> String {
 LL |     "this won't work".to_string();
 LL |     "removeme".to_string();
    |                           - help: consider removing this semicolon
-   |
-   = note: expected struct `std::string::String`
-                found type `()`
 
 error: aborting due to 2 previous errors