rust/tests/ui/block-result/block-must-not-have-result-while.rs
2023-01-11 09:32:08 +00:00

7 lines
160 B
Rust

fn main() {
while true { //~ WARN denote infinite loops with
true //~ ERROR mismatched types
//~| expected `()`, found `bool`
}
}