]> git.lizzy.rs Git - rust.git/blob - tests/ui/block-result/block-must-not-have-result-while.rs
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / 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 `()`, found `bool`
5     }
6 }