rust/src/test/compile-fail/block-must-not-have-result-do.rs
2012-03-10 20:38:03 -08:00

7 lines
110 B
Rust

// error-pattern:mismatched types: expected `()` but found `bool`
fn main() {
loop {
true
}
}