rust/src/test/compile-fail/block-must-not-have-result-res.rs
2012-06-01 20:40:35 -07:00

9 lines
120 B
Rust

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