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

8 lines
113 B
Rust
Raw Normal View History

// error-pattern:mismatched types: expected `()` but found `bool`
resource r(i: int) {
true
}
fn main() {
}