-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