rust/src/test/compile-fail/block-must-not-have-result-res.rs

13 lines
157 B
Rust
Raw Normal View History

// error-pattern:mismatched types: expected `()` but found `bool`
struct r {}
impl r : Drop {
fn finalize(&self) {
true
}
}
fn main() {
}