2017-12-16 20:37:44 +00:00
|
|
|
error: if expression with an `else if`, but without a final `else`
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/else_if_without_else.rs:54:12
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
54 | } else if bla2() {
|
2017-12-16 20:37:44 +00:00
|
|
|
| ____________^
|
2018-12-10 05:27:19 +00:00
|
|
|
55 | | //~ ERROR else if without else
|
|
|
|
56 | | println!("else if");
|
|
|
|
57 | | }
|
2018-11-27 14:27:34 +00:00
|
|
|
| |_____^
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::else-if-without-else` implied by `-D warnings`
|
2018-11-27 14:27:34 +00:00
|
|
|
= help: add an `else` block here
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
|
|
error: if expression with an `else if`, but without a final `else`
|
2018-12-10 05:27:19 +00:00
|
|
|
--> $DIR/else_if_without_else.rs:63:12
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
2018-12-10 05:27:19 +00:00
|
|
|
63 | } else if bla3() {
|
2017-12-16 20:37:44 +00:00
|
|
|
| ____________^
|
2018-12-10 05:27:19 +00:00
|
|
|
64 | | //~ ERROR else if without else
|
|
|
|
65 | | println!("else if 2");
|
|
|
|
66 | | }
|
2018-11-27 14:27:34 +00:00
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= help: add an `else` block here
|
2017-12-16 20:37:44 +00:00
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|