rust/tests/ui/else_if_without_else.stderr

23 lines
695 B
Plaintext
Raw Normal View History

2017-12-16 21:37:44 +01:00
error: if expression with an `else if`, but without a final `else`
2018-10-06 18:18:06 +02:00
--> $DIR/else_if_without_else.rs:51:12
2017-12-16 21:37:44 +01:00
|
2018-10-06 18:18:06 +02:00
51 | } else if bla2() { //~ ERROR else if without else
2017-12-16 21:37:44 +01:00
| ____________^
2018-10-06 18:18:06 +02:00
52 | | println!("else if");
53 | | }
2017-12-16 21:37:44 +01:00
| |_____^ help: add an `else` block here
|
= note: `-D clippy::else-if-without-else` implied by `-D warnings`
2017-12-16 21:37:44 +01:00
error: if expression with an `else if`, but without a final `else`
2018-10-06 18:18:06 +02:00
--> $DIR/else_if_without_else.rs:59:12
2017-12-16 21:37:44 +01:00
|
2018-10-06 18:18:06 +02:00
59 | } else if bla3() { //~ ERROR else if without else
2017-12-16 21:37:44 +01:00
| ____________^
2018-10-06 18:18:06 +02:00
60 | | println!("else if 2");
61 | | }
2017-12-16 21:37:44 +01:00
| |_____^ help: add an `else` block here
2018-01-16 17:06:27 +01:00
error: aborting due to 2 previous errors