2017-06-23 17:43:35 -07:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/block-must-not-have-result-res.rs:5:9
|
2017-06-23 17:43:35 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn drop(&mut self) {
|
2023-09-30 19:29:41 +00:00
|
|
|
| - expected `()` because of default return type
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | true
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^^^ expected `()`, found `bool`
|
2017-06-23 17:43:35 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-06-23 17:43:35 -07:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|