]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/else_if_without_else.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / else_if_without_else.stderr
CommitLineData
f20569fa
XL
1error: `if` expression with an `else if`, but without a final `else`
2 --> $DIR/else_if_without_else.rs:45:12
3 |
4LL | } else if bla2() {
5 | ____________^
6LL | | //~ ERROR else if without else
7LL | | println!("else if");
8LL | | }
9 | |_____^
10 |
11 = note: `-D clippy::else-if-without-else` implied by `-D warnings`
12 = help: add an `else` block here
13
14error: `if` expression with an `else if`, but without a final `else`
15 --> $DIR/else_if_without_else.rs:54:12
16 |
17LL | } else if bla3() {
18 | ____________^
19LL | | //~ ERROR else if without else
20LL | | println!("else if 2");
21LL | | }
22 | |_____^
23 |
24 = help: add an `else` block here
25
26error: aborting due to 2 previous errors
27