]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: this looks like an `else {..}` but the `else` is missing |
2 | --> $DIR/suspicious_else_formatting.rs:11:6 | |
3 | | | |
4 | LL | } { | |
5 | | ^ | |
6 | | | |
7 | = note: `-D clippy::suspicious-else-formatting` implied by `-D warnings` | |
8 | = note: to remove this lint, add the missing `else` or add a new line before the next block | |
9 | ||
10 | error: this looks like an `else if` but the `else` is missing | |
11 | --> $DIR/suspicious_else_formatting.rs:15:6 | |
12 | | | |
13 | LL | } if foo() { | |
14 | | ^ | |
15 | | | |
16 | = note: to remove this lint, add the missing `else` or add a new line before the second `if` | |
17 | ||
18 | error: this looks like an `else if` but the `else` is missing | |
19 | --> $DIR/suspicious_else_formatting.rs:22:10 | |
20 | | | |
21 | LL | } if foo() { | |
22 | | ^ | |
23 | | | |
24 | = note: to remove this lint, add the missing `else` or add a new line before the second `if` | |
25 | ||
26 | error: this looks like an `else if` but the `else` is missing | |
27 | --> $DIR/suspicious_else_formatting.rs:30:10 | |
28 | | | |
29 | LL | } if foo() { | |
30 | | ^ | |
31 | | | |
32 | = note: to remove this lint, add the missing `else` or add a new line before the second `if` | |
33 | ||
34 | error: this is an `else {..}` but the formatting might hide it | |
35 | --> $DIR/suspicious_else_formatting.rs:39:6 | |
36 | | | |
37 | LL | } else | |
38 | | ______^ | |
39 | LL | | { | |
40 | | |____^ | |
41 | | | |
42 | = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}` | |
43 | ||
cdc7bbd5 XL |
44 | error: this is an `else if` but the formatting might hide it |
45 | --> $DIR/suspicious_else_formatting.rs:51:6 | |
f20569fa | 46 | | |
cdc7bbd5 | 47 | LL | } else |
f20569fa | 48 | | ______^ |
cdc7bbd5 | 49 | LL | | if foo() { // the span of the above error should continue here |
f20569fa XL |
50 | | |____^ |
51 | | | |
cdc7bbd5 | 52 | = note: to remove this lint, remove the `else` or remove the new line between `else` and `if` |
f20569fa XL |
53 | |
54 | error: this is an `else if` but the formatting might hide it | |
cdc7bbd5 | 55 | --> $DIR/suspicious_else_formatting.rs:56:6 |
f20569fa | 56 | | |
cdc7bbd5 | 57 | LL | } |
f20569fa | 58 | | ______^ |
cdc7bbd5 | 59 | LL | | else |
f20569fa XL |
60 | LL | | if foo() { // the span of the above error should continue here |
61 | | |____^ | |
62 | | | |
63 | = note: to remove this lint, remove the `else` or remove the new line between `else` and `if` | |
64 | ||
cdc7bbd5 XL |
65 | error: this is an `else {..}` but the formatting might hide it |
66 | --> $DIR/suspicious_else_formatting.rs:83:6 | |
f20569fa XL |
67 | | |
68 | LL | } | |
69 | | ______^ | |
cdc7bbd5 | 70 | LL | | |
f20569fa | 71 | LL | | else |
cdc7bbd5 | 72 | LL | | { |
f20569fa XL |
73 | | |____^ |
74 | | | |
cdc7bbd5 XL |
75 | = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}` |
76 | ||
77 | error: this is an `else {..}` but the formatting might hide it | |
78 | --> $DIR/suspicious_else_formatting.rs:91:6 | |
79 | | | |
80 | LL | } | |
81 | | ______^ | |
82 | LL | | else | |
83 | LL | | | |
84 | LL | | { | |
85 | | |____^ | |
86 | | | |
87 | = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}` | |
f20569fa | 88 | |
cdc7bbd5 | 89 | error: aborting due to 9 previous errors |
f20569fa | 90 |