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

7 lines
105 B
Rust
Raw Normal View History

// error-pattern:this block must not have a result
fn main() {
do {
true
} while true;
}