]> git.lizzy.rs Git - rust.git/blob - tests/ui/suspicious_else_formatting.stderr
Fix #88256, remove duplicated diagnostic
[rust.git] / tests / ui / suspicious_else_formatting.stderr
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
44 error: this is an `else if` but the formatting might hide it
45   --> $DIR/suspicious_else_formatting.rs:51:6
46    |
47 LL |       } else
48    |  ______^
49 LL | |     if foo() { // the span of the above error should continue here
50    | |____^
51    |
52    = note: to remove this lint, remove the `else` or remove the new line between `else` and `if`
53
54 error: this is an `else if` but the formatting might hide it
55   --> $DIR/suspicious_else_formatting.rs:56:6
56    |
57 LL |       }
58    |  ______^
59 LL | |     else
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
65 error: this is an `else {..}` but the formatting might hide it
66   --> $DIR/suspicious_else_formatting.rs:83:6
67    |
68 LL |       }
69    |  ______^
70 LL | |
71 LL | |     else
72 LL | |     {
73    | |____^
74    |
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 `{..}`
88
89 error: aborting due to 9 previous errors
90