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

7 lines
120 B
Rust
Raw Normal View History

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