]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/block-result/issue-3563.stderr
report the total number of errors on compilation failure
[rust.git] / src / test / ui / block-result / issue-3563.stderr
index 9b403bcd93db7ced0cf5d5ad6275af420b2d0576..4b1f8b032b74d1d257548b606c48c440b0e08390 100644 (file)
@@ -7,11 +7,13 @@ error[E0599]: no method named `b` found for type `&Self` in the current scope
 error[E0308]: mismatched types
   --> $DIR/issue-3563.rs:13:9
    |
+12 |     fn a(&self) {
+   |                 - possibly return type missing here?
 13 |         || self.b()
    |         ^^^^^^^^^^^ expected (), found closure
    |
    = note: expected type `()`
               found type `[closure@$DIR/issue-3563.rs:13:9: 13:20 self:_]`
 
-error: aborting due to previous error(s)
+error: aborting due to 2 previous errors