2017-12-16 20:37:44 +00:00
|
|
|
error: if expression with an `else if`, but without a final `else`
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/else_if_without_else.rs:51:12
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
51 | } else if bla2() { //~ ERROR else if without else
|
2017-12-16 20:37:44 +00:00
|
|
|
| ____________^
|
2018-10-06 16:18:06 +00:00
|
|
|
52 | | println!("else if");
|
|
|
|
53 | | }
|
2017-12-16 20:37:44 +00:00
|
|
|
| |_____^ help: add an `else` block here
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::else-if-without-else` implied by `-D warnings`
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
|
|
error: if expression with an `else if`, but without a final `else`
|
2018-10-06 16:18:06 +00:00
|
|
|
--> $DIR/else_if_without_else.rs:59:12
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
2018-10-06 16:18:06 +00:00
|
|
|
59 | } else if bla3() { //~ ERROR else if without else
|
2017-12-16 20:37:44 +00:00
|
|
|
| ____________^
|
2018-10-06 16:18:06 +00:00
|
|
|
60 | | println!("else if 2");
|
|
|
|
61 | | }
|
2017-12-16 20:37:44 +00:00
|
|
|
| |_____^ help: add an `else` block here
|
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|