]> git.lizzy.rs Git - rust.git/commitdiff
--bless the tests
authorvarkor <github@varkor.com>
Fri, 25 May 2018 16:31:45 +0000 (17:31 +0100)
committervarkor <github@varkor.com>
Fri, 25 May 2018 16:31:45 +0000 (17:31 +0100)
src/test/ui/break-while-condition.rs
src/test/ui/break-while-condition.stderr

index 5949b299893240248b2dd2f76283b18049e3fa7e..050b479d485f60f694241504531b5cfca01148d0 100644 (file)
@@ -22,16 +22,16 @@ fn main() {
     }
 
     if false {
-        let _: ! = { //~ ERROR mismatched types
-            while false {
+        let _: ! = {
+            while false { //~ ERROR mismatched types
                 break
             }
         };
     }
 
     if false {
-        let _: ! = { //~ ERROR mismatched types
-            while false {
+        let _: ! = {
+            while false { //~ ERROR mismatched types
                 return
             }
         };
index e3564297bf2efe667d2377131d0d307ab49f0abe..c8f06db960392b5d8a72837130d912dc1489dfab 100644 (file)
@@ -16,7 +16,7 @@ error[E0308]: mismatched types
 LL |   fn main() {
    |             - expected `()` because of default return type
 ...
-LL | /             while false {
+LL | /             while false { //~ ERROR mismatched types
 LL | |                 break
 LL | |             }
    | |_____________^ expected !, found ()
@@ -30,7 +30,7 @@ error[E0308]: mismatched types
 LL |   fn main() {
    |             - expected `()` because of default return type
 ...
-LL | /             while false {
+LL | /             while false { //~ ERROR mismatched types
 LL | |                 return
 LL | |             }
    | |_____________^ expected !, found ()