about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/suspicious_else_formatting.stderr
blob: 04555c6edbd3b93502db90b7eb3327caa3f79c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
error: this looks like an `else {..}` but the `else` is missing
  --> tests/ui/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::possible-missing-else` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::possible_missing_else)]`

error: this looks like an `else if` but the `else` is missing
  --> tests/ui/suspicious_else_formatting.rs:27: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
  --> tests/ui/suspicious_else_formatting.rs:35: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
  --> tests/ui/suspicious_else_formatting.rs:44: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
  --> tests/ui/suspicious_else_formatting.rs:54:6
   |
LL |       } else
   |  ______^
LL | |     {
   | |____^
   |
   = note: to remove this lint, remove the `else` or remove the new line between `else` and `{..}`
   = note: `-D clippy::suspicious-else-formatting` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::suspicious_else_formatting)]`

error: this is an `else if` but the formatting might hide it
  --> tests/ui/suspicious_else_formatting.rs:67: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
  --> tests/ui/suspicious_else_formatting.rs:73: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
  --> tests/ui/suspicious_else_formatting.rs:101: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
  --> tests/ui/suspicious_else_formatting.rs:109: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