summaryrefslogtreecommitdiffstats
path: root/tests/ui/block-result/block-must-not-have-result-while.rs
blob: 418059bf280ea1ffd02f82100147b0e9870362ba (plain)
1
2
3
4
5
6
fn main() {
    while true { //~ WARN denote infinite loops with
        true //~  ERROR mismatched types
             //~| expected `()`, found `bool`
    }
}