error[E0308]: mismatched types
--> $DIR/block-must-not-have-result-while.rs:3:9
|
-LL | true
- | ^^^^ expected (), found bool
- |
- = note: expected type `()`
- found type `bool`
+LL | / while true {
+LL | | true
+ | | ^^^^ expected `()`, found `bool`
+LL | |
+LL | | }
+ | |_____- expected this to be `()`
-error: aborting due to previous error
+error: aborting due to previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0308`.