28 lines
740 B
Plaintext
28 lines
740 B
Plaintext
error: if expression with an `else if`, but without a final `else`
|
|
--> $DIR/else_if_without_else.rs:54:12
|
|
|
|
|
54 | } else if bla2() {
|
|
| ____________^
|
|
55 | | //~ ERROR else if without else
|
|
56 | | println!("else if");
|
|
57 | | }
|
|
| |_____^
|
|
|
|
|
= 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:63:12
|
|
|
|
|
63 | } else if bla3() {
|
|
| ____________^
|
|
64 | | //~ ERROR else if without else
|
|
65 | | println!("else if 2");
|
|
66 | | }
|
|
| |_____^
|
|
|
|
|
= help: add an `else` block here
|
|
|
|
error: aborting due to 2 previous errors
|
|
|