]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/block-must-not-have-result-res.stderr
ba80ce2d6b14ab6138f2fd1fb52f69175707c588
[rust.git] / src / test / ui / block-result / block-must-not-have-result-res.stderr
1 error[E0308]: mismatched types
2   --> $DIR/block-must-not-have-result-res.rs:5:9
3    |
4 LL |     fn drop(&mut self) {
5    |                        - expected `()` because of default return type
6 LL |         true
7    |         ^^^^ expected (), found bool
8    |
9    = note: expected unit type `()`
10                    found type `bool`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.