2020-01-06 15:36:33 +09:00
|
|
|
error: `if` expression with an `else if`, but without a final `else`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/else_if_without_else.rs:45:12
|
2017-12-16 14:37:44 -06:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | } else if bla2() {
|
2017-12-16 14:37:44 -06:00
|
|
|
| ____________^
|
2023-07-02 14:35:19 +02:00
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | println!("else if");
|
|
|
|
LL | | }
|
2018-11-27 15:27:34 +01:00
|
|
|
| |_____^
|
2017-12-16 14:37:44 -06:00
|
|
|
|
|
2018-11-27 15:27:34 +01:00
|
|
|
= help: add an `else` block here
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::else-if-without-else` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::else_if_without_else)]`
|
2017-12-16 14:37:44 -06:00
|
|
|
|
2020-01-06 15:36:33 +09:00
|
|
|
error: `if` expression with an `else if`, but without a final `else`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/else_if_without_else.rs:54:12
|
2017-12-16 14:37:44 -06:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | } else if bla3() {
|
2017-12-16 14:37:44 -06:00
|
|
|
| ____________^
|
2023-07-02 14:35:19 +02:00
|
|
|
LL | |
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | | println!("else if 2");
|
|
|
|
LL | | }
|
2018-11-27 15:27:34 +01:00
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= help: add an `else` block here
|
2017-12-16 14:37:44 -06:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|