about summary refs log tree commit diff
path: root/tests/ui/block-result/block-must-not-have-result-while.rs
blob: ada4e1778a562eef233bd584007027c259aae6cb (plain)
1
2
3
4
5
6
7
8
//@ dont-require-annotations: NOTE

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