]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/block-must-not-have-result-while.rs
Auto merge of #57119 - jethrogb:jb/sgx-os-mod2, r=joshtriplett
[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 }