2020-01-06 00:36:33 -06:00
|
|
|
error: `if` expression with an `else if`, but without a final `else`
|
2024-03-08 19:45:40 -06:00
|
|
|
--> tests/ui/else_if_without_else.rs:51: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
|
|
|
| ____________^
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | |
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | | println!("else if");
|
|
|
|
LL | | }
|
2018-11-27 08:27:34 -06:00
|
|
|
| |_____^
|
2017-12-16 14:37:44 -06:00
|
|
|
|
|
2018-11-27 08:27:34 -06:00
|
|
|
= help: add an `else` block here
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::else-if-without-else` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::else_if_without_else)]`
|
2017-12-16 14:37:44 -06:00
|
|
|
|
2020-01-06 00:36:33 -06:00
|
|
|
error: `if` expression with an `else if`, but without a final `else`
|
2024-03-08 19:45:40 -06:00
|
|
|
--> tests/ui/else_if_without_else.rs:60: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
|
|
|
| ____________^
|
2023-07-02 07:35:19 -05:00
|
|
|
LL | |
|
2018-12-27 09:57:55 -06:00
|
|
|
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
|
|
|
|
2024-03-08 19:45:40 -06:00
|
|
|
error: `if` expression with an `else if`, but without a final `else`
|
|
|
|
--> tests/ui/else_if_without_else.rs:87:12
|
|
|
|
|
|
|
|
|
LL | } else if bla5() {
|
|
|
|
| ____________^
|
|
|
|
LL | |
|
|
|
|
LL | | println!("else if 4");
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= help: add an `else` block here
|
|
|
|
|
|
|
|
error: `if` expression with an `else if`, but without a final `else`
|
|
|
|
--> tests/ui/else_if_without_else.rs:117:16
|
|
|
|
|
|
|
|
|
LL | } else if bla5() {
|
|
|
|
| ________________^
|
|
|
|
LL | |
|
|
|
|
LL | | println!("else if 4");
|
|
|
|
LL | | }
|
|
|
|
| |_________^
|
|
|
|
|
|
|
|
|
= help: add an `else` block here
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|