rust/tests/ui/else_if_without_else.stderr

23 lines
695 B
Text
Raw Normal View History

2017-12-16 21:37:44 +01:00
error: if expression with an `else if`, but without a final `else`
--> $DIR/else_if_without_else.rs:41:12
2017-12-16 21:37:44 +01:00
|
41 | } else if bla2() { //~ ERROR else if without else
2017-12-16 21:37:44 +01:00
| ____________^
42 | | println!("else if");
43 | | }
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`
--> $DIR/else_if_without_else.rs:49:12
2017-12-16 21:37:44 +01:00
|
49 | } else if bla3() { //~ ERROR else if without else
2017-12-16 21:37:44 +01:00
| ____________^
50 | | println!("else if 2");
51 | | }
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