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