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