rust/src/test/compile-fail/block-must-not-have-result-res.rs
Niko Matsakis 72a3667eb3 Allow tail expressions even in no_value blocks. Type checker
will guarantee they have unit type.
2012-01-03 13:13:52 -08:00

8 lines
113 B
Rust

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