rust/src/test/compile-fail/block-must-not-have-result-res.rs
2012-08-17 10:13:45 -07:00

9 lines
121 B
Rust

// error-pattern:mismatched types: expected `()` but found `bool`
struct r {
new() {}
drop { true }
}
fn main() {
}