]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/else_if_without_else.stderr
iterate List by value
[rust.git] / tests / ui / else_if_without_else.stderr
index b8a5031fbcff60e236c207eac3536fbd8d471ff7..6f47658cfb18400f0df75a7ab24e8f10fcec8ad8 100644 (file)
@@ -1,22 +1,27 @@
-error: if expression with an `else if`, but without a final `else`
-  --> $DIR/else_if_without_else.rs:39:12
+error: `if` expression with an `else if`, but without a final `else`
+  --> $DIR/else_if_without_else.rs:45:12
    |
-39 |       } else if bla2() { //~ ERROR else if without else
+LL |       } else if bla2() {
    |  ____________^
-40 | |         println!("else if");
-41 | |     }
-   | |_____^ help: add an `else` block here
+LL | |         //~ ERROR else if without else
+LL | |         println!("else if");
+LL | |     }
+   | |_____^
    |
-   = note: `-D else-if-without-else` implied by `-D warnings`
+   = note: `-D clippy::else-if-without-else` implied by `-D warnings`
+   = help: add an `else` block here
 
-error: if expression with an `else if`, but without a final `else`
-  --> $DIR/else_if_without_else.rs:47:12
+error: `if` expression with an `else if`, but without a final `else`
+  --> $DIR/else_if_without_else.rs:54:12
    |
-47 |       } else if bla3() { //~ ERROR else if without else
+LL |       } else if bla3() {
    |  ____________^
-48 | |         println!("else if 2");
-49 | |     }
-   | |_____^ help: add an `else` block here
+LL | |         //~ ERROR else if without else
+LL | |         println!("else if 2");
+LL | |     }
+   | |_____^
+   |
+   = help: add an `else` block here
 
 error: aborting due to 2 previous errors