]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/block-result/block-must-not-have-result-res.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / block-result / block-must-not-have-result-res.stderr
index 29885cac234fbdd36b8dae98f90ea6f95934682d..aabc7604f90c03de15f10e8cf507eb6000cadb8b 100644 (file)
@@ -3,11 +3,8 @@ error[E0308]: mismatched types
    |
 LL |     fn drop(&mut self) {
    |                        - expected `()` because of default return type
-LL |         true //~  ERROR mismatched types
+LL |         true
    |         ^^^^ expected (), found bool
-   |
-   = note: expected type `()`
-              found type `bool`
 
 error: aborting due to previous error