]> git.lizzy.rs Git - rust.git/blob - tests/ui/else_if_without_else.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[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:39:12
3    |
4 39 |       } else if bla2() { //~ ERROR else if without else
5    |  ____________^
6 40 | |         println!("else if");
7 41 | |     }
8    | |_____^ help: add an `else` block here
9    |
10    = note: `-D 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:47:12
14    |
15 47 |       } else if bla3() { //~ ERROR else if without else
16    |  ____________^
17 48 | |         println!("else if 2");
18 49 | |     }
19    | |_____^ help: add an `else` block here
20
21 error: aborting due to 2 previous errors
22