]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/block-must-not-have-result-while.rs
42b439cd3208e25f0f1aeddbb9b6a398de6fab78
[rust.git] / src / test / ui / block-result / block-must-not-have-result-while.rs
1 fn main() {
2     while true { //~ WARN denote infinite loops with
3         true //~  ERROR mismatched types
4              //~| expected unit type `()`
5              //~| found type `bool`
6              //~| expected (), found bool
7     }
8 }