]> git.lizzy.rs Git - rust.git/blob - 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
1 error[E0599]: no method named `b` found for type `&Self` in the current scope
2   --> $DIR/issue-3563.rs:13:17
3    |
4 13 |         || self.b()
5    |                 ^
6
7 error[E0308]: mismatched types
8   --> $DIR/issue-3563.rs:13:9
9    |
10 12 |     fn a(&self) {
11    |                 - possibly return type missing here?
12 13 |         || self.b()
13    |         ^^^^^^^^^^^ expected (), found closure
14    |
15    = note: expected type `()`
16               found type `[closure@$DIR/issue-3563.rs:13:9: 13:20 self:_]`
17
18 error: aborting due to 2 previous errors
19