]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/block-must-not-have-result-while.rs
Auto merge of #55519 - fhartwig:hashmap-index-example, r=Centril
[rust.git] / src / test / ui / block-result / block-must-not-have-result-while.rs
1 fn main() {
2     while true {
3         true //~  ERROR mismatched types
4              //~| expected type `()`
5              //~| found type `bool`
6              //~| expected (), found bool
7     }
8 }