2017-12-16 20:37:44 +00:00
|
|
|
error: if expression with an `else if`, but without a final `else`
|
2018-08-01 14:30:44 +00:00
|
|
|
--> $DIR/else_if_without_else.rs:41:12
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
41 | } else if bla2() { //~ ERROR else if without else
|
2017-12-16 20:37:44 +00:00
|
|
|
| ____________^
|
2018-08-01 14:30:44 +00:00
|
|
|
42 | | println!("else if");
|
|
|
|
43 | | }
|
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-08-01 14:30:44 +00:00
|
|
|
--> $DIR/else_if_without_else.rs:49:12
|
2017-12-16 20:37:44 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
49 | } else if bla3() { //~ ERROR else if without else
|
2017-12-16 20:37:44 +00:00
|
|
|
| ____________^
|
2018-08-01 14:30:44 +00:00
|
|
|
50 | | println!("else if 2");
|
|
|
|
51 | | }
|
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
|
|
|
|
|