mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
91 lines
2.7 KiB
Text
91 lines
2.7 KiB
Text
error: this looks like an `else {..}` but the `else` is missing
|
|
--> $DIR/suspicious_else_formatting.rs:22:6
|
|
|
|
|
LL | } {
|
|
| ^
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the next block
|
|
= note: `-D clippy::suspicious-else-formatting` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::suspicious_else_formatting)]`
|
|
|
|
error: this looks like an `else if` but the `else` is missing
|
|
--> $DIR/suspicious_else_formatting.rs:26:6
|
|
|
|
|
LL | } if foo() {
|
|
| ^
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
|
|
|
|
error: this looks like an `else if` but the `else` is missing
|
|
--> $DIR/suspicious_else_formatting.rs:33:10
|
|
|
|
|
LL | } if foo() {
|
|
| ^
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
|
|
|
|
error: this looks like an `else if` but the `else` is missing
|
|
--> $DIR/suspicious_else_formatting.rs:41:10
|
|
|
|
|
LL | } if foo() {
|
|
| ^
|
|
|
|
|
= note: to remove this lint, add the missing `else` or add a new line before the second `if`
|
|
|
|
error: this is an `else {..}` but the formatting might hide it
|
|
--> $DIR/suspicious_else_formatting.rs:50:6
|
|
|
|
|
LL | } else
|
|
| ______^
|
|
LL | | {
|
|
| |____^
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
|
|
|
error: this is an `else if` but the formatting might hide it
|
|
--> $DIR/suspicious_else_formatting.rs:62:6
|
|
|
|
|
LL | } else
|
|
| ______^
|
|
LL | | if foo() { // the span of the above error should continue here
|
|
| |____^
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
|
|
|
|
error: this is an `else if` but the formatting might hide it
|
|
--> $DIR/suspicious_else_formatting.rs:67:6
|
|
|
|
|
LL | }
|
|
| ______^
|
|
LL | | else
|
|
LL | | if foo() { // the span of the above error should continue here
|
|
| |____^
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
|
|
|
|
error: this is an `else {..}` but the formatting might hide it
|
|
--> $DIR/suspicious_else_formatting.rs:94:6
|
|
|
|
|
LL | }
|
|
| ______^
|
|
LL | |
|
|
LL | | else
|
|
LL | | {
|
|
| |____^
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
|
|
|
error: this is an `else {..}` but the formatting might hide it
|
|
--> $DIR/suspicious_else_formatting.rs:102:6
|
|
|
|
|
LL | }
|
|
| ______^
|
|
LL | | else
|
|
LL | |
|
|
LL | | {
|
|
| |____^
|
|
|
|
|
= note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
|
|
|
|
error: aborting due to 9 previous errors
|
|
|