rust/src/test/ui/block-result/block-must-not-have-result-while.rs
2019-07-06 06:43:58 +02:00

9 lines
229 B
Rust

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