]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: `if` expression with an `else if`, but without a final `else` |
2 | --> $DIR/else_if_without_else.rs:45:12 | |
3 | | | |
4 | LL | } else if bla2() { | |
5 | | ____________^ | |
6 | LL | | //~ ERROR else if without else | |
7 | LL | | println!("else if"); | |
8 | LL | | } | |
9 | | |_____^ | |
10 | | | |
11 | = note: `-D clippy::else-if-without-else` implied by `-D warnings` | |
12 | = help: add an `else` block here | |
13 | ||
14 | error: `if` expression with an `else if`, but without a final `else` | |
15 | --> $DIR/else_if_without_else.rs:54:12 | |
16 | | | |
17 | LL | } else if bla3() { | |
18 | | ____________^ | |
19 | LL | | //~ ERROR else if without else | |
20 | LL | | println!("else if 2"); | |
21 | LL | | } | |
22 | | |_____^ | |
23 | | | |
24 | = help: add an `else` block here | |
25 | ||
26 | error: aborting due to 2 previous errors | |
27 |