]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/block-result/block-must-not-have-result-while.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / block-result / block-must-not-have-result-while.stderr
index 44f62875ef1c4071ab119122418d84cc1c5e39ef..7f96aa289d0abc565b87aa2ef6ae47f0abdf4c7e 100644 (file)
@@ -9,12 +9,13 @@ LL |     while true {
 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`.