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