rust/src/test/compile-fail/block-must-not-have-result-for.rs
2012-07-01 19:19:32 -07:00

7 lines
130 B
Rust

// error-pattern:mismatched types: expected `()` but found `bool`
fn main() {
for vec::each(~[0]) |_i| {
true
}
}