]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/break-while-condition.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / break-while-condition.stderr
index e3564297bf2efe667d2377131d0d307ab49f0abe..9d22dcce4540cb4b29b1575ebebb41210e1268e6 100644 (file)
@@ -13,10 +13,7 @@ LL | |         };
 error[E0308]: mismatched types
   --> $DIR/break-while-condition.rs:26:13
    |
-LL |   fn main() {
-   |             - expected `()` because of default return type
-...
-LL | /             while false {
+LL | /             while false { //~ ERROR mismatched types
 LL | |                 break
 LL | |             }
    | |_____________^ expected !, found ()
@@ -27,10 +24,7 @@ LL | |             }
 error[E0308]: mismatched types
   --> $DIR/break-while-condition.rs:34:13
    |
-LL |   fn main() {
-   |             - expected `()` because of default return type
-...
-LL | /             while false {
+LL | /             while false { //~ ERROR mismatched types
 LL | |                 return
 LL | |             }
    | |_____________^ expected !, found ()