]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/block-result/block-must-not-have-result-while.rs
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / block-result / block-must-not-have-result-while.rs
index 96597631396df55a10ce75185a93174df68a83a7..f93725937299a697a1a738f2dff15185e68638ef 100644 (file)
@@ -1,8 +1,6 @@
 fn main() {
-    while true {
+    while true { //~ WARN denote infinite loops with
         true //~  ERROR mismatched types
-             //~| expected type `()`
-             //~| found type `bool`
              //~| expected (), found bool
     }
 }