]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/block_in_if_condition.stderr
Merge remote-tracking branch 'origin/beta_backport' into HEAD
[rust.git] / tests / ui / block_in_if_condition.stderr
index 34c0454b7824554cfd4c964a044cd2360a405eff..0876d5db6964152aa585e57f11f4210f90d47909 100644 (file)
@@ -31,7 +31,7 @@ LL |     if { true } {
            } ... 
 
 error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
-  --> $DIR/block_in_if_condition.rs:57:17
+  --> $DIR/block_in_if_condition.rs:58:17
    |
 LL |               |x| {
    |  _________________^
@@ -41,7 +41,7 @@ LL | |             },
    | |_____________^
 
 error: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let'
-  --> $DIR/block_in_if_condition.rs:66:13
+  --> $DIR/block_in_if_condition.rs:67:13
    |
 LL |           |x| {
    |  _____________^
@@ -51,7 +51,7 @@ LL | |         },
    | |_________^
 
 error: this boolean expression can be simplified
-  --> $DIR/block_in_if_condition.rs:76:8
+  --> $DIR/block_in_if_condition.rs:77:8
    |
 LL |     if true && x == 3 {
    |        ^^^^^^^^^^^^^^ help: try: `x == 3`