]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/reachable/expr_while.stderr
Rollup merge of #93663 - sunfishcode:sunfishcode/as-raw-name, r=joshtriplett
[rust.git] / src / test / ui / reachable / expr_while.stderr
index 83354574eafc4ce260e895b41fe22f0056053c53..b1859f619342338b48bf1072a5f0ac6d1b7ddcbd 100644 (file)
@@ -1,4 +1,4 @@
-error: unreachable block in `while` expression
+error: unreachable block in `if` or `while` expression
   --> $DIR/expr_while.rs:7:20
    |
 LL |       while {return} {
@@ -8,7 +8,7 @@ LL |       while {return} {
 LL | |
 LL | |         println!("Hello, world!");
 LL | |     }
-   | |_____^ unreachable block in `while` expression
+   | |_____^ unreachable block in `if` or `while` expression
    |
 note: the lint level is defined here
   --> $DIR/expr_while.rs:4:9
@@ -16,7 +16,7 @@ note: the lint level is defined here
 LL | #![deny(unreachable_code)]
    |         ^^^^^^^^^^^^^^^^
 
-error: unreachable block in `while` expression
+error: unreachable block in `if` or `while` expression
   --> $DIR/expr_while.rs:22:20
    |
 LL |       while {return} {
@@ -26,7 +26,7 @@ LL |       while {return} {
 LL | |
 LL | |         println!("I am dead.");
 LL | |     }
-   | |_____^ unreachable block in `while` expression
+   | |_____^ unreachable block in `if` or `while` expression
 
 error: aborting due to 2 previous errors