]> git.lizzy.rs Git - rust.git/blob - tests/ui/else_if_without_else.stderr
Merge pull request #2977 from flip1995/tool_lints
[rust.git] / tests / ui / else_if_without_else.stderr
1 error: if expression with an `else if`, but without a final `else`
2   --> $DIR/else_if_without_else.rs:41:12
3    |
4 41 |       } else if bla2() { //~ ERROR else if without else
5    |  ____________^
6 42 | |         println!("else if");
7 43 | |     }
8    | |_____^ help: add an `else` block here
9    |
10    = note: `-D clippy::else-if-without-else` implied by `-D warnings`
11
12 error: if expression with an `else if`, but without a final `else`
13   --> $DIR/else_if_without_else.rs:49:12
14    |
15 49 |       } else if bla3() { //~ ERROR else if without else
16    |  ____________^
17 50 | |         println!("else if 2");
18 51 | |     }
19    | |_____^ help: add an `else` block here
20
21 error: aborting due to 2 previous errors
22